Close room even if others are in it?

Options
Hi all,

I have a server that creates a room at the moment on cloud, but I want to be able to close the room and boot all the players. Is this possible?

Thanks,

Doomie

Comments

  • [Deleted User]
    Options
    Hi Doomie,

    You can use Room.open property for closing the room.
  • Can you elaborate on that please as room.open doesn't exist that I can see.

    Thanks
  • [Deleted User]
    Options
    Use PhotonNetwork.room for getting and accessing the properties of the room you are currently in.
  • Tobias
    Options
    Setting room.open to false will not kick players from a room. It will keep others from joining. The "visible" property removes the room from the lobby's listing.

    You can kick everyone by RPC, if you wanted to. Just send a RPC and implement the method for it to leave the room.