IsVehicleWheelOnGround

From Multi Theft Auto: Wiki
Revision as of 13:50, 18 February 2018 by Necktrox (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0160|1.6.0|11854| This function returns a boolean whether the vehicle's wheel is on ground (true) or in air (false). }}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function returns a boolean whether the vehicle's wheel is on ground (true) or in air (false).

[[{{{image}}}|link=|]] Note: In vehicles with 3 wheels, the wheels are combined 2 in 1, in motorbikes only the left - "front_left" and "rear_left"

Syntax

bool isVehicleWheelCollided ( vehicle theVehicle, string|number wheel )

Required Arguments

  • theVehicle The vehicle, which you want to check.
  • wheel The wheel name or number, see list below:
    • "front_left" or 0
    • "rear_left" or 1
    • "front_right" or 2
    • "rear_right" or 3

Returns

Returns true if the vehicle wheel is on ground/collided, false otherwise.

Example

Accessories-text-editor.png Script Example Missing Function IsVehicleWheelOnGround needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also