OnGlobalReady
On this page
Earlier edition reference / Current 0.86.4.0 property paths > p. 329
when global ready
log(to_json(event))
endA persistent/global script is initialized through its language runtime's ready route.
| Common context keys | Use and limits |
|---|---|
| Language-specific startup context; native GDScript includes eventName and scriptId | Use it to initialize that global instance, not to assume a playable room is ready. The GDScript runtime calls a global script's matching method directly. The visual On Event picker does not offer this ready event; do not design it as a universal room-ready graph broadcast. |
OnInteraction#
when player interacts
log(to_json(event))
endA scene-entity verb interaction reaches its execution point.
| Common context keys | 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#
when player enters trigger welcome_trigger
log(to_json(event))
endThe active player enters an eligible trigger/interactive-region overlap.
| Common context keys | 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. |
