-
-
Notifications
You must be signed in to change notification settings - Fork 18
alarm_set_running
drewmccluskey edited this page Jan 23, 2019
·
3 revisions
Sets indicated alarm running
alarm_set_running(index, running)
Argument | Description |
---|---|
int index |
Alarm index |
bool running |
Turn on/off the alarm. |
Returns: void
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.
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