ObjectEventTriggers are trigger script elements that will listen for a particular condition to be met by one or more linked objects.
The ObjectEventTrigger has two fields.
- Event: Determines when the trigger's attached scripts will run. This field is a dropdown with the following options:
|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.
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.