OnSceneLeaving
On this page
Earlier edition reference / Current 0.86.4.0 property paths > p. 329
when room lab leaves
log(to_json(event))
endThe scene-loading route is leaving one scene for another.
| Common context keys | Use and limits |
|---|---|
| sceneId, nextSceneId | sceneId is the departing room. Do short cleanup here. The normal player Change Scene route also runs its local firstLeave/leave action lists; other loading routes need not reproduce every local transition hook. |
OnPlayerChanged#
when player changes
log(to_json(event))
endThe controlled playable character changes.
| Common context keys | Use and limits |
|---|---|
| playerId, displayName | Refresh character-specific presentation. This event concerns player selection, not every movement of a character. The runtime follows it with OnCharacterControl in the switch path. |
OnCharacterControl#
when event OnCharacterControl
log(to_json(event))
endA character becomes the controlled character, including initial control at startup.
| Common context keys | Use and limits |
|---|---|
| playerId, displayName | Use it for HUD/inventory presentation or control-specific setup. It also has a per-character On Control script hook. This event is a special case in which playerId can identify the calling character for this. |
