Scenen Load Level Photon

Hello, I urgently need your help
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

1379396_676178542443513_763864014_n.jpg

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.
  • Thanks it worked :D
  • How can you set the isMasterClient to false, so that each player on isMasterClient = false Plays

    No one should be master!
    :?
  • You can't. One client simply becomes master.
    What do you want all players to do?
  • @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

  • PhotonNetwork.AutomaticallySyncScene = true;