timer_is_enabled - ryzom/ryzomcore GitHub Wiki


title: Timer Is Enabled description: published: true date: 2023-03-12T22:58:50.137Z tags: editor: markdown dateCreated: 2023-03-12T22:58:47.260Z

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.

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