GetVehicleGravity

From Multi Theft Auto: Wiki
Revision as of 21:07, 14 June 2009 by Arc (talk | contribs) (New page: __NOTOC__ {{Client function}} Retrieves the current gravity vector of a vehicle. This is the direction in which the vehicle falls, also the cameras of any passengers will be rotated to ma...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Retrieves the current gravity vector of a vehicle. This is the direction in which the vehicle falls, also the cameras of any passengers will be rotated to match it.

Syntax

float float float getVehicleGravity ( vehicle theVehicle )

Required Arguments

  • theVehicle: the vehicle to retrieve the gravity vector of.

Returns

Returns the x, y and z components of the gravity vector if successful, false otherwise.

See Also