Get the player in the room
Options
Comments
-
Hi,
Try PhotonNetwork.FindFriends() while client is in lobby.0 -
Hi,
Thanks, I noticed there is also "PhotonNetwork.playerList" whats the difference between the two? , also I noticed PhotonPlayer has many of the usual properties like Score, Team, etc already integrated, so I wonder if playerList is already sorted with the players with more points on top to make a score chart or is there anything like that so I dont have to make mine.0 -
PhotonNetwork.playerList is unsorted list of players in currently joined room.
PhotonNetwork.FindFriends() asks currently joined lobby about statuses of players with given names.
PhotonPlayer does not have those properties. All player properties set with player.SetCustomProperties and get via player.customProperties
UtilityScripts folders contains helpers for Score and Team which use player custom properties inside.0