Cutting Off New Players
Options
I'd like to refuse new players from connecting, or even seeing the room as a candidate for JoinRandomRoom etc., after the game launches. I've tried reducing PhotonNetwork.room.maxPlayers to zero, which still doesn't prevent new connections. Proper way?
Thanks.
Thanks.
0
Comments
-
Hi @GWP,
Did you try:
- Making the room invisible in the lobby:PhotonNetwork.CurrentRoom.IsVisible = false;
- Closing the room:PhotonNetwork.CurrentRoom.IsOpen = false;
I do not think this is recommended but your maxPlayers trick is clever but 0 means infinite!
Try setting maxPlayers to playersCount (I have to check if this sets it locally or send it to server)0