The "timer_set_pause" Function

Syntax

timer_set_pause(id, enable, [instance]);
ArgumentTypeDescription
idstringThe unique timer ID to modify, as a string (or keyword all for all local timers)
enablebooleanEnables, disables, or toggles the pause state
[instance]instanceOptional: Sets the object instance containing the timer to modify (use none for self)

Description

Pauses or unpauses the specified timer. Can also toggle pause state if other is supplied instead of true or false.

Example

timer_set_pause("t_alarm", other);
timer_set_pause(all, true, my_other_inst);