Gameplay::setTimeScale: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Maximum value is 1.<br>At a value of 0 the game will still run at a minimum time scale.<br><br>Slow Motion 1: 0.6<br>Slow Motion 2: 0.4<br>Slow Motion 3: 0.2
Maximum value is 1.<br>At a value of 0 the game will still run at a minimum time scale.<br><br>Slow Motion 1: 0.6<br>Slow Motion 2: 0.4<br>Slow Motion 3: 0.2
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">gameplay.setTimeScale(time);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.gameplay.setTimeScale(time);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''time:''' float
*'''time:''' float
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Gameplay_function_c}}
{{Gameplay_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:06, 6 May 2017

Maximum value is 1.
At a value of 0 the game will still run at a minimum time scale.

Slow Motion 1: 0.6
Slow Motion 2: 0.4
Slow Motion 3: 0.2

Syntax

mp.game.gameplay.setTimeScale(time);

Required Arguments

  • time: float

Return value

  • Undefined

Example

// todo

See also

Template:Gameplay s function c