Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

alarm_dispose()

Xubiod edited this page Oct 21, 2017 · 2 revisions

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;