Cyber Engine Tweaks
Modding
Dictionary
Other
External docs
Other Wikis
Powered By GitBook
TimeSystem
Documents the TimeSystem class and its functions.
NOT DOCUMENTED We currently don't have information on how these functions work. They are being documented here for visibility.

Invoking TimeSystem

To invoke the time system, use the following Global function:
1
times = Game.GetTimeSystem()
Copied!

Sub-functions

GetGameTime

GetGameTime
Info & Usage
1
GetGameTime() : GameTime;
Copied!

GetGameTimeStamp

GetGameTimeStamp
Info & Usage
1
GetGameTimeStamp() : Float;
Copied!

GetSimTime

GetSimTime
Info & Usage
1
GetSimTime() : EngineTime;
Copied!

IsPausedState

IsPausedState
Info & Usage
1
IsPausedState() : Bool;
Copied!

IsTimeDilationActive

IsTimeDilationActive
Info & Usage
1
IsTimeDilationActive(optional reason : CName) : Bool;
Copied!

RealTimeSecondsToGameTime

RealTimeSecondsToGameTime
Info & Usage
1
RealTimeSecondsToGameTime(seconds : Float) : GameTime;
Copied!

RegisterDelayedListener

RegisterDelayedListener
Info & Usage
1
RegisterDelayedListener(entity : wref:Entity, eventToDelay : ref:Event, delay : GameTime, repeat : Int32, optional sendOldNoifications : Bool) : Uint32;
Copied!

RegisterIntervalListener

RegisterIntervalListener
Info & Usage
1
RegisterIntervalListener(entity : wref:Entity, eventToDelay : ref:Event, expectedHour : GameTime, timeout : GameTime, optional repeat : Int32) : Uint32;
Copied!

RegisterListener

RegisterListener
Info & Usage
1
RegisterListener(entity : wref:Entity, eventToDelay : ref:Event, expectedTime : GameTime, repeat : Int32, optional sendOldNoifications : Bool) : Uint32;
Copied!

RegisterScriptableSystemIntervalListener

RegisterScriptableSystemIntervalListener
Info & Usage
1
RegisterScriptableSystemIntervalListener(systemName : CName, requestToDelay : ref:ScriptableSystemRequest, expectedHour : GameTime, timeout : GameTime, optional repeat : Int32) : Uint32;
Copied!

SetGameTimeByHMS

SetGameTimeByHMS
Info & Usage
1
SetGameTimeByHMS(hours : Int32, minutes : Int32, seconds : Int32);
Copied!

SetGameTimeBySeconds

SetGameTimeBySeconds
Info & Usage
1
SetGameTimeBySeconds(seconds : Int32);
Copied!

SetIgnoreTimeDilationOnLocalPlayerZero

SetIgnoreTimeDilationOnLocalPlayerZero
Info & Usage
1
SetIgnoreTimeDilationOnLocalPlayerZero(ignore : Bool);
Copied!

SetPausedState

SetPausedState
Info & Usage
1
SetPausedState(paused : Bool, source : CName);
Copied!

SetTimeDilation

SetTimeDilation
Info & Usage
1
SetTimeDilation(reason : CName, dilation : Float, optional duration : Float, optional easeInCurve : CName, optional easeOutCurve : CName, optional listener : ref:TimeDilationListener);
Copied!

SetTimeDilationOnLocalPlayerZero

SetTimeDilationOnLocalPlayerZero
Info & Usage
1
SetTimeDilationOnLocalPlayerZero(reason : CName, dilation : Float, optional duration : Float, optional easeInCurve : CName, optional easeOutCurve : CName, optional ignore : Bool);
Copied!

UnregisterListener

UnregisterListener
Info & Usage
1
UnregisterListener(listenerID : Uint32);
Copied!

UnsetTimeDilation

UnsetTimeDilation
Info & Usage
1
UnsetTimeDilation(reason : CName, optional easeOutCurve : CName);
Copied!

UnsetTimeDilationOnLocalPlayerZero

UnsetTimeDilationOnLocalPlayerZero
Info & Usage
1
UnsetTimeDilationOnLocalPlayerZero(optional easeOutCurve : CName);
Copied!
Last modified 8mo ago