ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. setSlowMotionEnabled

Function

setSlowMotionEnabled

Server and clientMiscellaneousTrilogy Hub only

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

enabledbool
true = slow motion works.
kindstring, optional = "all"
"wheel", "stunt" or "all".

Returns

true on success.

Example

setSlowMotionEnabled(true, "stunt")

See also