AreaTriggers are trigger script elements that listen for activity in an area.
The AreaTrigger has three fields.
- Event: Determines when the trigger occurs. This field is a dropdown with the following options:
|OnEnter||An actor enters the linked shape|
|OnLeave||An actor exits the linked shape|
|OnEnterOrLeave||An actor enters or exits the linked shape|
- Shape: The shapes in which to listen for actors.
- ActorTypes: A set of checkboxes that filter conditions by the type of character: Player, Enemy, Allied, or Neutral.
Mainly used for setting up buttons for the player to push.
Can be used to script ambushes, or to detect when enemies reach a certain point.