ParaScript.OnPlayerLeft

Declaration

public void OnPlayerLeft(ParaPlayer player, PlayerLeftEvent evt)

Parameters

Parameter NameParameter Description
playerPlayer that leaves the room
evtThe way that the player leaves the room

Description

Triggered when a player leaves the room.

  1. If a player exits a room normally, the evt parameter returns PlayerLeftEvent.ExitRoom.
  2. 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.