OnCustomEvent
On this page
GDScript handler: on_custom_event(event: Dictionary = {})
A script or Emit Event graph node explicitly emits this event name.
| Standard context | Practical use / limits |
|---|---|
| Whatever keys the emitter sends; eventName is added for the listener | Use a reason key, such as signal_powered, to distinguish several messages sharing OnCustomEvent. It is not automatically emitted by every button or variable edit. The graph form uses its Context JSON; the GDScript helper merges its current caller context before emitting. |
OnGlobalReady#
GDScript handler: on_global_ready(event: Dictionary = {})
A persistent/global script is initialized through its language runtime's ready route.
| Standard context | Practical use / 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#
GDScript handler: on_interaction(event: Dictionary = {})
A scene-entity verb interaction reaches its execution point.
| Standard context | Practical use / 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. |
