Skip to content

Player Leave

Runs for a player leaving the playing session. Do not assume the departing player remains eligible for further gameplay mutations.

Event → Choose Operation → Player → Plot & Lifecycle → Player Leave. Configure with Dev access and compile.

Default Event Target has declared type player. Only values actually supplied by this event are available.

Use Game Values and Target Objects appropriate to this event. Unavailable event data reports an error rather than silently producing a usable default.

Event: Player Leave
Set Variable: Public String lastEvent ← "Player Leave"

Declare any Public destination first. Test by performing the described interaction in Play; some events require the matching entity/item/game context. Use the example as an observation handler, then replace it with your intended behavior.

Event mutations/cancellation must run while the original synchronous event is active. A Wait or suspension ends that opportunity. Captured event values can remain readable afterward. Check that participants still belong to Play before applying later actions. Repeated movement/interaction triggers can create many tasks if each starts detached work.

Events and targets · Control flow · Async calls

Reference identifier: player_leave.