Alarm event
This page is a work in progress. |
An alarm is a variable used to trigger an event after a set period of time has elapsed. Alarms are very much like timers. Once you create an alarm, it will begin counting down. When it reaches zero, the corresponding alarm event will be triggered.
How to create an alarm
To have a working alarm, you will need two things:
- An alarm event (containing the actions to be performed when the alarm is triggered)
- An alarm action (creating the alarm, and starting its countdown)
Creating an alarm event
- Open LateralGM
- Create or open an object
- Click the event selector icon () at the top right hand of the screen
- Click and drag one of the alarms into the Events column for that object. As you can see, you are provided with up to eleven different alarms per object.
- Add the actions and/or code you wish to execute inside the Actions column for that alarm
Creating an alarm action
Below is a table comparing the different ways of creating an alarm action. Which method you use depends on which development approach (or type) you are using.
Type | Method |
---|---|
D&D |
|
GML |
Unfinished |
C |
Unfinished |
Modifying an alarm
Increasing the time on an alarm
If you wish to delay an alarm event from being triggered, you can add an alarm action as follows:
Type | Method |
---|---|
D&D |
|
GML |
Unfinished |
C |
Unfinished |
Temporarily turning an alarm off
There are times when you would like to pause an alarm's countdown, without deleting the alarm. This is achieved as follows:
Type | Method |
---|---|
D&D |
Unfinished |
GML |
Unfinished |
C |
Unfinished |