Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Jim132 on December 19, 2018, 07:32:00 PM

Title: How to make a photon room unable to join after the scene changes?
Post by: Jim132 on December 19, 2018, 07:32:00 PM
In some multiplayer games, we can create rooms and wait for players to join first. Then the master clicks Start Game button and the scene changes. After the scene changes, other player will not be able to join that room anymore.

But in the DemoWorker Demo, players can join a room at anytime. So how to make a room unable to join after the scene changes/game starts?

Thanks for answering!  ;D
Title: Re: How to make a photon room unable to join after the scene changes?
Post by: jeanfabre on December 20, 2018, 01:17:29 AM
Hi,

Ah, good point, I did not create the action to close the room, please update from the ecosystem, I have added two new actions:

PhotonNetworkSetIsOpen, and PhotonNetworkSetIsVisible.

set  IsOpen to false and the room will not be joinable. IsVisible is if you are listing rooms and you don't want it to appear in the lobby, yet it's not closed ( pending known players to join or something)

Bye,

 Jean
Title: Re: How to make a photon room unable to join after the scene changes?
Post by: Jim132 on December 20, 2018, 03:25:20 AM
Thank you very much! I will try it out later!  ;D
Title: Re: How to make a photon room unable to join after the scene changes?
Post by: turritom on September 20, 2020, 04:22:13 PM
are these commands also available for pun2?
Title: Re: How to make a photon room unable to join after the scene changes?
Post by: turritom on September 22, 2020, 05:08:49 AM
okay i chance the action for photon2 realtime
Title: Re: How to make a photon room unable to join after the scene changes?
Post by: MuguleNation on March 06, 2022, 05:39:54 AM
Hi !

Sorry to dig up this topic.

I can't find "PhotonNetworkSetIsOpen" for PUN2 in the ecosystem. Does someone know how i can get it?