You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The setTimer native AI script function is used to set a timer with a specified delay time and start it.
Syntax
()setTimer(DeltaTime: f, TimerId: f)
Arguments
DeltaTime(float): The time (in ticks) before the timer event is triggered.
TimerId(float): The ID of the timer to set.
Example
setTimer(200, 0);
In this example, the function setTimer is called to set a timer with an ID of 0 and a delay of 200 ticks, meaning it will trigger the t0 timer event in 20 seconds.