Skip to content

alarm_set_running

drewmccluskey edited this page Jan 23, 2019 · 3 revisions

alarm_set_running

Sets indicated alarm running

Syntax:

alarm_set_running(index, running)
Argument Description
int index Alarm index
bool running Turn on/off the alarm.

Returns: void

Description:

This function turns off or on an indicated alarm. There are implemented 16 alarms that can be used in this. It is especially useful when you must pause an alarm halfway through its timing down without setting it to -1 and then restarting the alarm.

Example:

alarm_set_running(5, true);
alarm_set(5, 120);

This code will turn on alarm 5, and then run EvtAlarm5 after 120 frames.

Back to Alarms

Clone this wiki locally