Gameplay::setGravityLevel: Difference between revisions
No edit summary |
(Made an example and added the JavaScript Container) |
||
| Line 1: | Line 1: | ||
level can be from 0 to 3<br>0: 9.8 - normal<br>1: 2.4 - low<br>2: 0.1 - very low<br>3: 0.0 - off<br><br> | level can be from 0 to 3<br>0: 9.8 - normal<br>1: 2.4 - low<br>2: 0.1 - very low<br>3: 0.0 - off<br><br> | ||
==Example== | ==Example== | ||
{{JSContainer| | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.game.gameplay.setGravityLevel(level); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{Parameters}} | |||
* '''level''' expects an '''int''' between 0 and 3. | |||
{{Example}} | |||
<syntaxhighlight lang="javascript"> | |||
mp.game.gameplay.setGravityLevel(0) | |||
</syntaxhighlight> | |||
}} | |||
==See also== | ==See also== | ||
{{Gameplay_s_function_c}} | {{Gameplay_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 14:41, 21 April 2019
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)