- Documentation
- Server functions
- setPlayerSlowMotionEnabled
Function
setPlayerSlowMotionEnabled
Turns slow motion on or off for a player: on the weapon wheel ("wheel"), on stunts ("stunt") or both.
Syntax
bool setPlayerSlowMotionEnabled(player thePlayer, bool enabled [, string kind = "all"])Arguments
thePlayerplayer- A player or
root. enabledbooltrueturns it on.kindstring, optional = "all""wheel","stunt"or"all".
Returns
true on success.
Example
setPlayerSlowMotionEnabled(root, false, "wheel")
See also
isPlayerSlowMotionEnabledChecks whether slow motion is on for the player: on the weapon wheel ("wheel"), on stunts ("stunt") or both ("all").setSlowMotionEnabledTurns 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.