Stop change Scene
I have a Scene 1 : MatchMaking Scene, where players wait before the launch of the Scene 2 : Battle Scene.
I use PhotonNetwork.AutomaticallySyncScene = true; one Scene1 just before the MasterClient launch the Scene 2 , like that others players follow him.
And i let "PhotonNetwork.AutomaticallySyncScene = true" while the Battle because the like that the new players come to the Battle Scene too
But at the end of the battle i need to stop that, i need the new players coming in the room dont come in the Scene 2 but wait in the scene 1 (MatchMaking Scene).
So i dont know how can i do that.
I had try to PhotonNetwork.AutomaticallySyncScene = false; but the new players continue to come in Scene 2...
I had try
PhotonNetwork.OpCleanActorRpcBuffer(PhotonNetwork.LocalPlayer.ActorNumber);
PhotonNetwork.OpRemoveCompleteCacheOfPlayer(PhotonNetwork.LocalPlayer.ActorNumber);
PhotonNetwork.OpRemoveCompleteCache();
PhotonNetwork.IsMessageQueueRunning = false;
and its the same too.
I dont know what to do
So i need your help for keep new players at the Scene1 when the battle is over
Thank you guys
I use PhotonNetwork.AutomaticallySyncScene = true; one Scene1 just before the MasterClient launch the Scene 2 , like that others players follow him.
And i let "PhotonNetwork.AutomaticallySyncScene = true" while the Battle because the like that the new players come to the Battle Scene too
But at the end of the battle i need to stop that, i need the new players coming in the room dont come in the Scene 2 but wait in the scene 1 (MatchMaking Scene).
So i dont know how can i do that.
I had try to PhotonNetwork.AutomaticallySyncScene = false; but the new players continue to come in Scene 2...
I had try
PhotonNetwork.OpCleanActorRpcBuffer(PhotonNetwork.LocalPlayer.ActorNumber);
PhotonNetwork.OpRemoveCompleteCacheOfPlayer(PhotonNetwork.LocalPlayer.ActorNumber);
PhotonNetwork.OpRemoveCompleteCache();
PhotonNetwork.IsMessageQueueRunning = false;
and its the same too.
I dont know what to do
So i need your help for keep new players at the Scene1 when the battle is over
Thank you guys
0
Comments
-
Ok.. thanks for support !0
-
RaiseEvent do the job : https://doc.photonengine.com/zh-cn/pun/current/gameplay/rpcsandraiseevent0