- Documentation
- Server functions
- isPlayerSlowMotionEnabled
Function
isPlayerSlowMotionEnabled
Checks whether slow motion is on for the player: on the weapon wheel ("wheel"), on stunts ("stunt") or both ("all").
Syntax
bool isPlayerSlowMotionEnabled(player thePlayer [, string kind = "all"])Arguments
thePlayerplayer- The player.
kindstring, optional = "all""wheel","stunt"or"all".
Returns
true if on.
Example
if isPlayerSlowMotionEnabled(player, "wheel") then
outputChatBox("Koło broni spowalnia czas.", player)
end
See also
setPlayerSlowMotionEnabledTurns slow motion on or off for a player: on the weapon wheel ("wheel"), on stunts ("stunt") or both.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.