GetVehicleWheelStates

From Multi Theft Auto: Wiki
Revision as of 20:19, 5 October 2006 by MrJax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function returns the current states of all the wheels on the vehicle.

No vehicles have more than 4 wheels, if they appear to they will be duplicating other wheels.

Syntax

int, int, int, int getVehicleWheelStates ( vehicle theVehicle )

Required Arguments

  • theVehicle: A handle to the vehicle that you wish to know the wheel states of.

Returns

Returns 4 ints indicating the states of the wheel. These values can be:

  • 0: Inflated
  • 1: Flat
  • 2: Fallen off

Example

This example creates a new vehicle then gets the states of the vehicle's wheels.

newcar = createVehicle ( 520, 1024, 1024, 1024 )
frontLeft, frontRight, rearLeft, rearRight = getVehicleWheelState ( newcar )
outputChatBox ( "The rear-left wheel state on this car: " .. rearLeft )

See Also