SetVehicleDirtLevel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Fixed) |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Server client function}} | ||
{{Disabled|This function doesn't work actually. See the bugtracker for updates and more information.}} | <!--{{Disabled|This function doesn't work actually. See the bugtracker for updates and more information.}}--> | ||
This function sets the dirt level on a vehicle. | This function sets the dirt level on a vehicle. | ||
Line 11: | Line 11: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theVehicle:''' The vehicle that you want to set the dirt level from | *'''theVehicle:''' The vehicle that you want to set the dirt level from | ||
*'''dirtLevel:''' | *'''dirtLevel:''' (0.0 = fully clean, 15.0 = maximum dirt visible.) | ||
===Returns=== | ===Returns=== | ||
Line 17: | Line 17: | ||
==Example== | ==Example== | ||
{{Needs Example}} | |||
{{ | |||
}} | |||
==See Also== | ==See Also== | ||
{{Vehicle functions}} | {{Vehicle functions}} |
Latest revision as of 20:18, 14 December 2024
This function sets the dirt level on a vehicle.
Syntax
bool setVehicleDirtLevel ( vehicle theVehicle, int dirtLevel )
Required Arguments
- theVehicle: The vehicle that you want to set the dirt level from
- dirtLevel: (0.0 = fully clean, 15.0 = maximum dirt visible.)
Returns
Returns true if the dirt level was set on the vehicle, false if the dirt level was not set or if invalid arguments are specified.
Example
Script Example Missing Function SetVehicleDirtLevel needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
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