How to instantiate an object?

Options
Hi, I want to instantiate my player over the network but for some reason only the masterclient can, unless you run the game twice on your pc and make the instances join each other, then it works fine. What's wrong? Also, please don't ignore my questions

Answers

  • Bump
  • Bump
  • Bump
  • GLucas
    Options
    Instantiating over the network is not linked to being the MasterClient. You should be able to instantiate just fine by calling PhotonNetwork.Instantiate("playerPrefabPath", spawnPosition, spawnRotation), in addition to that you can supply a group for that instantiation for interest management if needed.

    However, PhotonNetwork.InstantiateSceneObject() does require the master client to call.

    Also, any code and editor screenshots you can provide will help.

    YOu can view this link for more info.