Gameplay::setGravityLevel: Difference between revisions

From RAGE Multiplayer Wiki
m (Minor shit i forgot to do)
m (Minor shit i forgot to do (again))
Line 15: Line 15:


==See also==
==See also==
{{Gameplay_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 14:46, 21 April 2019

Usage and example

JavaScript Syntax

mp.game.gameplay.setGravityLevel(level);

Parameters

  • level can be from 0 to 3
    0: 9.8 - normal gravity
    1: 2.4 - low gravity
    2: 0.1 - very low gravity
    3: 0.0 - no gravity

Example

mp.game.gameplay.setGravityLevel(0)


See also