ObjectEventTriggers are trigger script elements that will listen for a particular condition to be met by one or more linked objects.
Fields[]
The ObjectEventTrigger has two fields.
- Event: Determines when the trigger's attached scripts will run. This field is a dropdown with the following options:
Events | Condition |
---|---|
Hit | A player attacks the object. |
Destroyed | Characters are slain, items are collected, or objects are otherwise removed from the level. |
StateChanged | The object changes state. |
- Object: Points to an object for the trigger to listen to.
Tips[]
Used in conjunction with ChangeDoodadState and Counters for breakable walls.
Can be used to make events based on interactions such as making a character appear to talk when hit or cause enemies to spawn when a key is collected.