How to close a room even for those who left it

Options
Hi,
I have a really annoying problem. The rooms must be totally closed when a party starts. It works for the "exterior" players but if a player who was in the room leaves the room (with PhotonNetwork.leave()) and that it joins a room again with joinrandomroom, it'll come back in the same room. In order to close the room, the master client execute the following lines: PhotonNetwork.room.IsOpen = false;
PhotonNetwork.room.IsVisible = false;
Some help would be appreciated!
Thank you

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @forplayers,

    I think that what you're describing should never happen.
    Once a room is invisible or closed it should not be used in random matchmaking.
    Please make sure:
    - the room is really closed and invisible.
    - the name and lobby of the room you join in random matchmaking.
  • forplayers
    Options
    Hi and thanks for the reply. I forgot to say that it's not always happening (but often). When I test just myself there is no problem but when there is a large flux between the rooms and the menu, it happens. What do you mean by "the name and lobby of the room you join in random matchmaking"?