alarm_dispose() - xubiod/gml-scripts GitHub Wiki
Stops an alarm.
Syntax
alarm_dispose(alarm id)
Argument | Description |
---|---|
alarm id | The alarm to dispose. |
Returns: Nothing
Description
This function sets an alarm to -1, which stops the alarm from counting down. This is a way to say that the Alarm Event is ignored.
Example:
alarm_dispose(0);
Stops alarm with ID of 0 from counting down.
GML Equivalent:
These are how you can set up what this function without using the function.
alarm_set(0, -1);
or alarm[0] = -1;