SetVehicleAdjustableProperty: Difference between revisions
Jump to navigation
Jump to search
(New page: setVehicleAdjustableProperty Use this to set the value of a vehicles adjustable property. This property relates to movable parts of a model, for example hydra jets or dump truck tray. ...) |
No edit summary |
||
Line 1: | Line 1: | ||
{{client function}} | |||
This function is used for adjusting the movable parts of a model, for example hydra jets or dump truck tray. | |||
This function only works on vehicles with adjustable properties. | |||
==Syntax== | |||
<syntaxhighlight lang="lua"> | |||
setVehicleAdjustableProperty ( element theVehicle, int value ) | |||
</syntaxhighlight> | |||
===Required Arguments=== | |||
*'''theVehicle''': The vehicle you wish to change the adjustable property of. | |||
*'''value''': A value from 0 between 255. (Set the adjustable value between 0 and N. 0 is the default value. It is possible to force the setting beyond default maximum, for example setting above 5000 on the dump truck (normal max 2500) will cause the tray to be fully vertical.) | |||
===Returns=== | |||
Returns true if the adjustable property was set. Otherwise false. | |||
==Example== | |||
<syntaxhighlight lang="lua"> | |||
Needs an example. | |||
</syntaxhighlight> | |||
==See Also== | |||
{{Vehicle_functions}} |
Revision as of 11:04, 17 November 2008
This function is used for adjusting the movable parts of a model, for example hydra jets or dump truck tray. This function only works on vehicles with adjustable properties.
Syntax
setVehicleAdjustableProperty ( element theVehicle, int value )
Required Arguments
- theVehicle: The vehicle you wish to change the adjustable property of.
- value: A value from 0 between 255. (Set the adjustable value between 0 and N. 0 is the default value. It is possible to force the setting beyond default maximum, for example setting above 5000 on the dump truck (normal max 2500) will cause the tray to be fully vertical.)
Returns
Returns true if the adjustable property was set. Otherwise false.
Example
Needs an example.
See Also
- 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