Skip to main content

The "timer_set_speed" Function

Syntax#

timer_set_speed(id, speed, [instance]);
ArgumentTypeDescription
idstringThe unique timer ID to modify, as a string (or keyword all for all local timers)
durationrealSets the speed multiplier of time countdown, where 1 is default
[instance]instanceOptional: Sets the object instance containing the timer to modify (use none for self)

Description#

Sets the speed multiplier for the specified timer, increasing or decreasing the countdown rate. The default value of 1 equals real time.

Example#

timer_set_speed("t_alarm", 0.5);
timer_set_speed(all, 1, my_other_inst);