RoomChanged
Gets called when player's last known room changes.
Start a script section
!-- OnEvent RoomChanged
-- require @evPlayer *evOldRoom *evNewRoom
# Add your instructions here
- Group: PlayerEvents
- Cancellable: No
- Event data:
PlayerRoomChangedEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player whose last known room changed. |
*evOldRoom | reference to Room object | Gets the old room. May be null if the player just spawned, went through void and such. |
*evNewRoom | reference to Room object | Gets the new room. May be null if the player went into void, died and such. |