set_timer - ryzom/ryzomcore GitHub Wiki
title: Set Timer description: published: true date: 2023-03-16T23:11:34.810Z tags: editor: markdown dateCreated: 2023-03-16T22:29:25.902Z
The setTimer native AI script function is used to set a timer with a specified delay time and start it.
()setTimer(DeltaTime: f, TimerId: f)
- DeltaTime (float): The time (in ticks) before the timer event is triggered.
- TimerId (float): The ID of the timer to set.
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.