Communicate to everyone

Options

Hello,

I've a question about Photon PUN 2. Is it possible to communicate to everyone who's connected to the PUN server ?

Because, in my case I've a waiting room, it's a lobby. I've an "admin" who can send everyone who's connected to the lobby to different rooms of the game. The admin is connected to the lobby at this point.

My goal is to bring back everyone into an admin room. So I need to send a RPC or whatever to bring everyone back.

Answers

  • Tobias
    Options

    You can send an event to everyone in a room, yes. Use RPCs or RaiseEvent.

    Actually, if you want everyone to load a specific scene .. you may want to look up AutomaticallySyncScene in the docs and use PhotonNetwork.LoadLevel().