Trigger API Reference DCEI Events Timer0 - BLKTower/TestWiki GitHub Wiki
Trigger API Reference\DCEI Events\Timer {Trigger-API-ReferenceDCEI-EventsTimer}
void TriggerAddTimerEventElapsed(TypedCallback trigger, float time, bool useRealTime, bool simple) {void-TriggerAddTimerEventElapsedTypedCallback-trigger-float-time-bool-useRealTime-bool-simple}
void TriggerAddTimerEventElapsed(TypedCallback trigger, float time, bool useRealTime, bool simple)This event triggers when the timer has elapsed.
-
object
triggerthe callback function that is run when the event is triggered. -
float
timethe amount of time the timer runs for. -
bool
useRealTimeif true, uses real time instead of game time. -
bool
simplethis flag reduces overhead by preventing the usage of DCEI.Wait() within the trigger. You should only set this to true if the trigger does not utilize DCEI.Wait() at all.
DCEI.TriggerAddTimerEventElapsed(OnTimer, 5, false, true)
function OnTimer()
DCEI.LogMessage("Timer Ended")
endvoid OnMapStart(TypedCallback trigger)This event triggers on map start.
DCEI.OnMapStart(A)
function A()
DCEI.LogMessage("A")
endvoid TriggerAddTimerEventPeriodic(TypedCallback trigger, float period, int lifeCount, bool useRealTime, bool simple) {void-TriggerAddTimerEventPeriodicTypedCallback-trigger-float-period-int-lifeCount-bool-useRealTime-bool-simple}
void TriggerAddTimerEventPeriodic(TypedCallback trigger, float period, int lifeCount, bool useRealTime, bool simple)This event triggers periodically on a timer, for the given number of times.
-
object
triggerthe callback function that is run when the event is triggered. -
float
periodthe amount of time between each trigger call. -
int
lifeCountthe number of times the trigger is called. -
bool
useRealTimeif true, uses real time instead of game time. -
bool
simplethis flag reduces overhead by preventing the usage of DCEI.Wait() within the trigger. You should only set this to true if the trigger does not utilize DCEI.Wait() at all.
function A()
DCEI.LogMessage("A")
end
DCEI.TriggerAddTimerEventPeriodic(A, 1, 15, false, true)void TriggerAddTimerEventPeriodicIndefinite(TypedCallback trigger, float period, bool useRealTime, bool simple) {void-TriggerAddTimerEventPeriodicIndefiniteTypedCallback-trigger-float-period-bool-useRealTime-bool-simple}
void TriggerAddTimerEventPeriodicIndefinite(TypedCallback trigger, float period, bool useRealTime, bool simple)This event triggers periodically on a timer, for an indefinite number of times.
-
object
triggerthe callback function that is run when the event is triggered. -
float
periodthe amount of time between each trigger call. -
bool
useRealTimeif true, uses real time instead of game time. -
bool
simplethis flag reduces overhead by preventing the usage of DCEI.Wait() within the trigger. You should only set this to true if the trigger does not utilize DCEI.Wait() at all.
function A()
DCEI.LogMessage("A")
end
DCEI.TriggerAddTimerEventPeriodicIndefinite(A, 1, false, true)