Gameplay::setGravityLevel

From RAGE Multiplayer Wiki
Revision as of 14:41, 21 April 2019 by Alexis27 (talk | contribs) (Made an example and added the JavaScript Container)

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

Example

JavaScript Syntax

mp.game.gameplay.setGravityLevel(level);

Parameters

  • level expects an int between 0 and 3.

Example

mp.game.gameplay.setGravityLevel(0)


See also

Template:Gameplay s function c