How to set room as permanently invisible server-side when maxPlayers is met?

Options
johnny_tictoc
edited February 2017 in Photon Server
Context: I have a 1v1 game. I understand that when there maxPlayers in the room, no other players can join the room. However, when a player disconnects, I am assuming that other players can then join the room. I don't want that to happen. I want the room to remain invisible from matchmaking, while I wait for the other player to reconnect.

So my questions are:
1. How do I set a room to be permanently invisible server-side when maxPlayers is met? I don't want the client to control this.
2. Is this done on MasterServer or GameServer?

Comments

  • chvetsov
    Options
    hi, john

    you need to set property at right time, this might be either IsVisible or IsClosed.
    when you set this value on game server it will be updated on Master too
    you may try to use IPluginHost.SetProperties in HiveHostGame to get this working correctly

    best,
    ilya