Local world events: quick reference
Objects, triggers and interactive regions use local responses. In scene entity records, volume/pointer actions live in the trigger event data; adventure verbs live in hotspot.verbs. The inspector presents those as separate tabs.
| Stored local key | Visible meaning | Typical use |
|---|---|---|
| onEnter | Player Collision / Entry | Start a guarded greeting when the active player enters. |
| onExit | Player Exit | Remove a temporary local effect after walking out. |
| onClick | Left click | Run a special direct pointer response. |
| onDoubleClick | Left double click | A deliberate alternate pointer response; account for the first click. |
| onRightClick | Right click | Inspect or cancel, according to your control design. |
| onDoubleRightClick | Right double click | An optional alternate right-pointer response. |
| onHover | Pointer enters/hovers | Lightweight presentation or a short contextual update. |
| onHoverExit | Pointer leaves | Clear a temporary hover presentation. |
Legacy onCollide data can supply entry work when the newer onEnter list is empty. For new work, use the named entry/exit lists shown by the inspector rather than building two overlapping versions of the same collision response.
The runtime guards overlapping execution of an entity's same local event while it is running. Later events can still run again. Important one-time behavior needs a completion flag that is part of the saved game state.
A visible region effect and an interactive region are not automatically the same thing. Enable/configure the region's interaction behavior and overlap/click setup before expecting its events to run. These volume events are not a general notification for every physical object collision.
