GetVehicleGravity: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (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...)
 
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
{{Needs Example}}


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.
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.

Revision as of 21:35, 7 May 2017

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

Before submitting check out Editing Guidelines Script Examples.


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