ParaScript.OnPlayerJoined

Declaration

public void OnPlayerJoined(ParaPlayer player, PlayerJoinEvent evt)

Parameters

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

Description

Triggered when a player joins the room.

  1. When a room is created, the evt parameter returns PlayerJoinEvent.CreateRoom.
  2. When a player joins the room, the evt parameter returns PlayerJoinEvent.JoinRoom.

When a player joins the room, the same evt parameter value is returned to both the local and remote clients as OnPlayerJoined is triggered.