timer_add - ryzom/ryzomcore GitHub Wiki


title: Timer Add description: published: true date: 2023-03-12T22:53:34.631Z tags: editor: markdown dateCreated: 2023-03-12T22:53:31.098Z

timerAdd

The timerAdd native AI script function extends a timer by adding a time delta.

Syntax

()timerAdd(TimerId: f, DeltaTime: f)

Arguments

  • TimerId (float): The ID of the timer to modify.
  • DeltaTime (float): The amount of time, in ticks, to add to the timer.

Example

()timerAdd(0, 50);

This example code adds 50 ticks to the timer with ID 0.

⚠️ **GitHub.com Fallback** ⚠️