I’m trying to make a multiplayer, and I have attempted to check how many players are in a room. I need it to be an int, not a string; I want to delay the start of the match until there is at least 4 players.
I have tried “PhotonNetwork.countOfPlayers”, but that got me compiler errors. This was the exact code I used.
if (PhotonNetwork.countOfPlayers > 4)
{
}
I know my method for instantiating a player works; I’ve tested it without PhotonNetwork.countOfPlayers
SNIPER is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.