OnInteraction
On this page
Earlier edition reference / Current 0.86.4.0 property paths > p. 350
func on_interaction(event: Dictionary = {}) -> void:
Log(ToJSON(event))A scene-entity verb interaction reaches its execution point.
| Common context | Use and limits |
|---|---|
| entityId, targetEntityId, targetKind, sceneId, playerId, characterId, verb, inventoryItemId, sourceItemId; regionId for a region | This is the shared notification before the local verb action list. Filter both target and verb. The local list receives a related but smaller context; do not assume every key shown here is passed unchanged to every nested call. |
OnTriggerEntered#
func on_trigger_entered(event: Dictionary = {}) -> void:
Log(ToJSON(event))The active player enters an eligible trigger/interactive-region overlap.
| Common context | Use and limits |
|---|---|
| triggerId, entityId, sceneId, playerId, event="enter"; regionId for a region | In the checked 3D route, other NPC bodies do not trigger this player-entry hook. The shared event runs before local onEnter actions. Starting inside a volume can create startup contact behavior; test that case separately. |
OnTriggerExited#
func on_trigger_exited(event: Dictionary = {}) -> void:
Log(ToJSON(event))The active player leaves an eligible trigger/interactive-region overlap.
| Common context | Use and limits |
|---|---|
| triggerId, entityId, sceneId, playerId, event="exit"; regionId for a region | Use it for leaving a local effect area. Teleports and room changes are not guaranteed to behave like ordinary walking out of the same live volume; perform important cleanup in the owning scene/sequence too. |
