Skip to content

timer_is_enabled

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

title: Timer Is Enabled description: published: true date: 2023-03-16T23:12:50.096Z tags: editor: markdown dateCreated: 2023-03-16T22:31:01.109Z

timerIsEnabled

The timerIsEnabled native AI script function checks if a timer is enabled.

Syntax

(isEnabled: f)timerIsEnabled(TimerId: f)

Arguments

  • TimerId (float): The ID of the timer to check.

Return value

  • IsEnabled (float): 1 if the timer is enabled, 0 otherwise.

Example

(isEnabled)timerIsEnabled(0);

This example code checks if the timer with ID 0 is enabled and stores the result in the variable isEnabled.

Clone this wiki locally