GetGravity

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:56, 5 January 2018
Jelly23 (Talk | contribs)

← Previous diff
Current revision
Jelly23 (Talk | contribs)

Line 3: Line 3:
{{Description|Get the currently set [[SetGravity|gravity]].}} {{Description|Get the currently set [[SetGravity|gravity]].}}
-{{Note2|This function is not defined by default. Add 'native GetGravity();' under the inclusion of a_samp.inc to use it.}}+{{Note2|This function is not defined by default. Add 'native Float:GetGravity();' under the inclusion of a_samp.inc to use it.}}
{{NoParam}} {{NoParam}}

Current revision



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
In other languages