Get players class using photon

Options
Hi is there a way to get the player class in a room? So I need a List of different player class to determine the number of loots dropped by a chest

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Danny07,

    Maybe you missed the PhotonPlayer class?
    You can get:
    • local player using PhotonNetwork.player
    • all players inside a room using PhotonNetwork.playersList
    • all other players inside the room using PhotonNetwork.otherPlayers
    You can add the "number of loots dropped by a chest" as a room or player property.