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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player whose last known room changed. |
$evOldZone | FacilityZone enum value | Gets the old zone. May be None if the player just spawned, went through void and such. |
$evNewZone | FacilityZone enum value | Gets the new zone. May be None if the player went into void, died and such. |