Scenen Load Level Photon

HellconX
✭
Hello, I urgently need your help
I need a code for scenes Load must trigger the man with a trigger
I did it with
attempted, but is not there comes the beiraus
I need a code for scenes Load must trigger the man with a trigger
I did it with
function OnTriggerEnter(){
Application.LoadLevel ("Scene");
}
attempted, but is not there comes the beiraus

-1
Comments
-
I'm not sure what the problem is.
You can set PhotonNetwork.automaticallySyncScene = true and then use PhotonNetwork.LoadLevel on the Master Client. The others should load the same level then.0 -
Thanks it worked0
-
How can you set the isMasterClient to false, so that each player on isMasterClient = false Plays
No one should be master! :?0 -
You can't. One client simply becomes master.
What do you want all players to do?0 -
@Tobias i tried this and this is my code
void Start(){
PhotonNetwork.AutomaticallySyncScene = false;
}
void OnTriggerEnter2D(Collider2D other)
{
if (PhotonNetwork.IsMasterClient)
{
PhotonNetwork.LoadLevel("Scene2");
}
player is being spawned into scene2 but is also being mirrored into scene 1 how do i fix this
0 -
PhotonNetwork.AutomaticallySyncScene = true;
0