The "timer_get_pause" Function

Syntax

timer_get_pause(id, [instance]);
ArgumentTypeDescription
idstringThe unique timer ID to check, as a string
[instance]instanceOptional: Sets the object instance containing the timer to check (use none for self)

Description

Returns the pause state for the timer running in the current or specified instance. If the instance or timer does not exist, true will be returned, as the timer is not running.

Example

if (timer_get_pause("my_timer")) {
timer_set("my_timer", 5);
}