Declaration
public void OnPlayerLeft(ParaPlayer player, PlayerLeftEvent evt)
Parameters
Parameter Name | Parameter Description |
---|---|
player | Player that leaves the room |
evt | The way that the player leaves the room |
Description
Triggered when a player leaves the room.
- If a player exits a room normally, the evt parameter returns PlayerLeftEvent.ExitRoom.
- In case of process killing or disconnection, the evt parameter returns PlayerLeftEvent.Disconnect.
When a player leaves the room, the same evt parameter value is returned to both the local and remote clients as OnPlayerLeft is triggered.