Mod:Creation Kit/OnTimerGameTime - ScriptObject

Member of: Mod:Creation Kit/ScriptObject Script

Event called once a game-time timer started on a script expires. This event will not be sent if the game is in menu mode.

Syntax
Event OnTimerGameTime(int aiTimerID)

Parameters

 * aiTimerID: The ID number of the timer which just expired.

Example
int myCoolTimerID = 10 ; Give our timer an ID we can remember

Function SomeFunction StartTimerGameTime(0.5, myCoolTimerID) ; Create the timer with a 30 minute game-time duration EndFunction Event OnTimerGameTime(int aiTimerID) If aiTimerID == myCoolTimerID ; The 30 minute timer we started just expired Debug.Trace("Timer ended! Do some cool stuff now...") ; If we wanted to have the timer start over, we could now do StartTimerGameTime again... EndIf EndEvent