Skip to content

alarm_set

drewmccluskey edited this page Jan 23, 2019 · 5 revisions

alarm_set

Sets alarm event for a specific amount of time

Syntax:

alarm_set(index, steps)
Argument Description
int index Alarm index
int steps After how many steps the alarm event will run

Returns: void

Description:

Simplex Engine has 16 implemented alarms that can be used as the index for this function. By default 60 steps are one second. Note that each alarm that will be used must first be turned on with alarm_set_running();

Example:

alarm_set(5, 120);

The above code will run EvtAlarm5 after 120 frames, or 2 seconds.

Back to Alarms

Clone this wiki locally