Trigger areas ​
Formerly called regions
The editor, the palette and these pages say trigger area so that it is not mixed up with a zone (a named place of the map with a banner). The node is a TriggerArea and its record a TriggerAreaData.
A trigger area (the TriggerArea node) is an area of a world that the game can watch: the old mill, the cave mouth, the market square. It does nothing by itself. It lets an event, a quest or a condition ask "is someone in there?" and react when they enter or leave.
Placing one ​
- Open the world scene, click the Volumes button, choose Trigger area and click where it goes. A trigger area node appears in the TriggerAreas container and is selected.
- It comes with a box shape (6 x 3 x 6 m): resize it with the gizmo over the area, or replace it with a sphere or a capsule (a
CollisionShape3Dchild). - Move the trigger area node to the place. Moving the node moves the shape with it.
- Set its Area Name in the Unique Object panel (or in Godot's inspector): The Old Mill. Triggers and quest texts show this name ("Reach The Old Mill").
The trigger area gets an id and a record in the database (TriggerAreaData: its world, position and rotation, and its name) as soon as it is in a world scene, like every other unique.
| Field | What it does | Default |
|---|---|---|
| Area Name | The name shown in event triggers and quest descriptions. Also the name of the trigger area record | empty |
What a trigger area sees ​
A trigger area placed with the placement tool sits on the Trigger areas collision layer and sees the player characters, NPCs and pets. If you need it to see something else (a projectile, an interactable), change the node's collision mask in the inspector; a trigger area you placed keeps the layers it is saved with.
Watching a trigger area ​
A trigger area is asleep until something watches it: it does not check for bodies, so a world with a hundred trigger areas costs nothing. The things that watch a trigger area wake it up while they need it:
| Watcher | What it does |
|---|---|
| Trigger area triggers of an event | Fire when something enters or leaves the trigger area. There are four: any entity, a player-controlled entity, an entity of a faction, one specific placed NPC |
| Conditions | Player Trigger area Presence and Trigger area Entity Presence ask who is inside right now. A condition can ask about any trigger area at any time, even one nothing watches: it asks the physics directly |
Who counts as "the player" ​
The Player Trigger area Presence condition has a Player slot setting:
| Choice | True when |
|---|---|
| Any player | Any member of the party is inside |
| All players | The whole party is inside |
| Current player | The character you control is inside |
| Player 1, 2, 3... | The character in that party slot is inside |
Require presence chooses between "is inside" (on) and "is not inside" (off).
Examples ​
- A quest objective "Reach the old mill": an event with a Player in trigger area trigger on the mill trigger area; the event completes the objective.
- An ambush: an event with a trigger any player enters the forest road; its action spawns bandits or activates an encounter.
- A safe area: a condition on an ability or an effect "only while not in the arena trigger area".
See also ​
- Events for the triggers and actions, Conditions for the presence conditions.
- How trigger areas are built.