SetVehicleHandling: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
This function can set a vehicle's handling.<br> | This function can set a vehicle's handling.<br> | ||
'''Note:''' This function is still not implemented into the nightly, and currently only impelemented in the handling branch | |||
''*'''Note:''' This function is still not implemented into the nightly, and currently only impelemented in the handling branch'' | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 11: | Line 13: | ||
*'''theVehicle:''' The vehicle you wish to set the handling of | *'''theVehicle:''' The vehicle you wish to set the handling of | ||
*'''prop:''' The property you wish to set the handling of the vehicle to | *'''prop:''' The property you wish to set the handling of the vehicle to | ||
*'''value:'' The value of the property you wish to set the handling of the vehicle to | *'''value:''' The value of the property you wish to set the handling of the vehicle to | ||
===Returns=== | ===Returns=== |
Revision as of 17:04, 6 May 2011
This function can set a vehicle's handling.
*Note: This function is still not implemented into the nightly, and currently only impelemented in the handling branch
Syntax
bool setVehicleHandling(element theVehicle, string prop int/float/bool value)
Required Arguments
- theVehicle: The vehicle you wish to set the handling of
- prop: The property you wish to set the handling of the vehicle to
- value: The value of the property you wish to set the handling of the vehicle to
Returns
Returns true if the handling was set successfully, false otherwise.
Example
-- to do
See other vehicle functions
- addVehicleUpgrade
- attachTrailerToVehicle
- blowVehicle
- createVehicle
- detachTrailerFromVehicle
- fixVehicle
- getOriginalHandling
- getTrainDirection
- getTrainPosition
- getTrainSpeed
- getTrainTrack
- getVehicleColor
- getVehicleCompatibleUpgrades
- getVehicleController
- getVehicleDoorOpenRatio
- getVehicleDoorState
- getVehicleEngineState
- getVehicleHandling
- getVehicleHeadLightColor
- getVehicleLandingGearDown
- getVehicleLightState
- getVehicleMaxPassengers
- getVehicleModelFromName
- getVehicleName
- getVehicleNameFromModel
- getVehicleOccupant
- getVehicleOccupants
- getVehicleOverrideLights
- getVehiclePaintjob
- getVehiclePanelState
- getVehiclePlateText
- getVehicleSirenParams
- getVehicleSirens
- getVehicleSirensOn
- getVehicleTowedByVehicle
- getVehicleTowingVehicle
- getVehicleTurretPosition
- getVehicleType
- getVehicleUpgradeOnSlot
- getVehicleUpgradeSlotName
- getVehicleUpgrades
- getVehicleVariant
- getVehicleWheelStates
- isTrainDerailable
- isTrainDerailed
- isVehicleBlown
- isVehicleDamageProof
- isVehicleFuelTankExplodable
- isVehicleLocked
- isVehicleOnGround
- isVehicleTaxiLightOn
- removeVehicleUpgrade
- setTrainDerailable
- setTrainDerailed
- setTrainDirection
- setTrainPosition
- setTrainSpeed
- setTrainTrack
- setVehicleColor
- setVehicleDamageProof
- setVehicleDoorOpenRatio
- setVehicleDoorState
- setVehicleDoorsUndamageable
- setVehicleEngineState
- setVehicleFuelTankExplodable
- setVehicleHandling
- setVehicleHeadLightColor
- setVehicleLandingGearDown
- setVehicleLightState
- setVehicleLocked
- setVehicleOverrideLights
- setVehiclePaintjob
- setVehiclePanelState
- setVehiclePlateText
- setVehicleSirens
- setVehicleSirensOn
- setVehicleTaxiLightOn
- setVehicleTurretPosition
- setVehicleVariant
- setVehicleWheelStates