OnSaveLoaded
Earlier edition reference / Current 0.86.4.0 property paths > p. 329
when save loads
log(to_json(event))
endA save has successfully restored game state.
| Common context keys | Use and limits |
|---|---|
| slot, sceneId, playerId | Refresh presentation from restored variables. Do not award a pickup again merely because its saved state was loaded. This is a successful-load hook; a missing or invalid save should not be treated as a completed restore. |
OnCustomEvent#
when event OnCustomEvent
log(to_json(event))
endA script or Emit Event graph node explicitly emits this event name.
| Common context keys | Use and 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. |
For your own exact name, emit_event("signal_powered", {...}) pairs with when event signal_powered. To use the standard OnCustomEvent hook, emit that exact hook name and put your discriminator in the data dictionary.
