- Documentation
- Shared functions
- setSlowMotionEnabled
Function
setSlowMotionEnabled
Turns the game's slow motion on or off: at the weapon wheel ("wheel") and during stunt jumps ("stunt"). Both are off by default, because in multiplayer slowing down one player breaks the game. On the server the setting applies to every player, on the client only to that game.
Syntax
bool setSlowMotionEnabled(bool enabled [, string kind = "all"])Arguments
enabledbooltrue= slow motion works.kindstring, optional = "all""wheel","stunt"or"all".
Returns
true on success.
Example
setSlowMotionEnabled(true, "stunt")
See also
isSlowMotionEnabledChecks whether slow motion of a kind is on ("all"= both).setPlayerSlowMotionEnabledTurns slow motion on or off for a player: on the weapon wheel ("wheel"), on stunts ("stunt") or both.setGameSpeedChanges the game speed for every player:1is normal,0.5slow motion,2twice as fast (at most 10). It affects movement, animations and physics.