Skip to main content

ZoneChanged

Gets called when player's last known zone changes.

Start a script section

!-- OnEvent ZoneChanged
-- require @evPlayer $evOldZone $evNewZone

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerZoneChangedEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player whose last known room changed.
$evOldZoneFacilityZone enum valueGets the old zone. May be None if the player just spawned, went through void and such.
$evNewZoneFacilityZone enum valueGets the new zone. May be None if the player went into void, died and such.