Skip to content

set_timer

Ryzom Core Wiki edited this page Jul 8, 2024 · 3 revisions

title: Set Timer description: published: true date: 2023-03-16T23:11:34.810Z tags: editor: markdown dateCreated: 2023-03-16T22:29:25.902Z

setTimer

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.

Clone this wiki locally