playMaker

Author Topic: How to make a photon room unable to join after the scene changes?  (Read 2754 times)

Jim132

  • Playmaker Newbie
  • *
  • Posts: 6
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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to make a photon room unable to join after the scene changes?
« Reply #1 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

Jim132

  • Playmaker Newbie
  • *
  • Posts: 6
Re: How to make a photon room unable to join after the scene changes?
« Reply #2 on: December 20, 2018, 03:25:20 AM »
Thank you very much! I will try it out later!  ;D

turritom

  • Playmaker Newbie
  • *
  • Posts: 25
Re: How to make a photon room unable to join after the scene changes?
« Reply #3 on: September 20, 2020, 04:22:13 PM »
are these commands also available for pun2?

turritom

  • Playmaker Newbie
  • *
  • Posts: 25
Re: How to make a photon room unable to join after the scene changes?
« Reply #4 on: September 22, 2020, 05:08:49 AM »
okay i chance the action for photon2 realtime

MuguleNation

  • Playmaker Newbie
  • *
  • Posts: 2
Re: How to make a photon room unable to join after the scene changes?
« Reply #5 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?