Hello! We make a multiplayer shooter game and have a problem with viewID duplication.
To create a AI players I use:
PhotonNetwork.InstantiateSceneObject(aiPrefab.name, spawnPoint.transform.position, spawnPoint.transform.rotation, 0, null);
When other players connect to the room - it's all right. When master client leave the room all going well - AI players control transfers to new master client.
But, after master client switched several times and new or old client try to connect to the room, I have a "Photonview id duplicate found" issue and all going wrong. That duplication viewID are belong to AI players.
What I'm doing wrong? Maybe I need to change viewID manually after master client switched?
Thank for the answer and excuse me for my english.
To create a AI players I use:
PhotonNetwork.InstantiateSceneObject(aiPrefab.name, spawnPoint.transform.position, spawnPoint.transform.rotation, 0, null);
When other players connect to the room - it's all right. When master client leave the room all going well - AI players control transfers to new master client.
But, after master client switched several times and new or old client try to connect to the room, I have a "Photonview id duplicate found" issue and all going wrong. That duplication viewID are belong to AI players.
What I'm doing wrong? Maybe I need to change viewID manually after master client switched?
Thank for the answer and excuse me for my english.