GetGravity

From SA-MP Wiki

Jump to: navigation, search


Description:

Get the currently set gravity.


Image:32px-Circle-style-warning.png

Important
Note

This function is not defined by default. Add 'native Float:GetGravity();' under the inclusion of a_samp.inc to use it.


Parameters:
This function has no parameters.


Return Values:

The current set gravity (as a float).


Example Usage:

#if !defined GetGravity
    native Float:GetGravity();
#endif
 
printf("Current gravity: %f", GetGravity());

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
Navigation
Toolbox
In other languages