REDNODE / GAME API

TimeSystem

classnative name gameTimeSystemnative

extends gameITimeSystem › IReplicatedGameSystem › IGameSystem › IScriptable › ISerializable

The game's clock: game time, pause and time dilation (slow motion).

Methods 22

native func GetActiveTimeDilation(opt reason: CName, opt ignoreCurves: Bool) -> Float

With an empty reason and ignoreCurves false, it read 1 in play and 0 while a menu was open (same test). It read -1 once while a save was loading. The scanner's slow motion did not change it, so that slow motion is not the global dilation.

A Sandevistan does change it (2.31, 2026-10-16, Sound API S1): it read 0.3 for the 2 to 3 seconds the Sandevistan was active, then 1 again, on two activations. V's own dilation (gameTimeDilatable) stayed 1.

native func GetGameTime() -> GameTime
native func GetGameTimeStamp() -> Float
native func GetSimTime() -> EngineTime
native func IsPausedState() -> Bool

Measured in game on 2.31 (2026-10-16, Sound API spike): stayed false the whole time, also while the pause menu was open. It does not tell that a menu paused the game. Use GetActiveTimeDilation or the overlay's menu state instead.

native func IsTimeDilationActive(opt reason: CName) -> Bool
native func RealTimeSecondsToGameTime(seconds: Float) -> GameTime
native func RegisterDelayedListener(entity: wref<Entity>, eventToDelay: ref<Event>, delay: GameTime, repeat: Int32, opt sendOldNoifications: Bool) -> Uint32
native func RegisterIntervalListener(entity: wref<Entity>, eventToDelay: ref<Event>, expectedHour: GameTime, timeout: GameTime, opt repeat: Int32) -> Uint32
native func RegisterListener(entity: wref<Entity>, eventToDelay: ref<Event>, expectedTime: GameTime, repeat: Int32, opt sendOldNoifications: Bool) -> Uint32
native func RegisterScriptableSystemIntervalListener(systemName: CName, requestToDelay: ref<ScriptableSystemRequest>, expectedHour: GameTime, timeout: GameTime, opt repeat: Int32) -> Uint32
native func RestorePreviousIgnoreTimeDilationOnLocalPlayerZero()
native func SetGameTime()
native func SetGameTimeByHMS(hours: Int32, minutes: Int32, seconds: Int32, opt reason: CName)
native func SetGameTimeBySeconds(seconds: Int32)
native func SetIgnoreTimeDilationOnLocalPlayerZero(ignore: Bool)
native func SetPausedState(paused: Bool, source: CName)
native func SetTimeDilation(reason: CName, dilation: Float, opt duration: Float, opt easeInCurve: CName, opt easeOutCurve: CName, opt listener: ref<TimeDilationListener>)
native func SetTimeDilationOnLocalPlayerZero(reason: CName, dilation: Float, opt duration: Float, opt easeInCurve: CName, opt easeOutCurve: CName)
native func UnregisterListener(listenerID: Uint32)
native func UnsetTimeDilation(reason: CName, opt easeOutCurve: CName)
native func UnsetTimeDilationOnLocalPlayerZero(reason: CName, opt easeOutCurve: CName)