Syn Third Person Camera vtHIRDpERSON camera

I try to make a third person game online,
I got stuck on the camera because the camera script I am using is the vThirdpersonCamera
this script linkss the rotation of the player and its controll with in the third person script as well.
I need these two to spawn together but with i spawn 2 players the they use only one camera, the one that is not thiers individually...its like person one has person 2 camera, and so on, the camera doesn't move.

Answers

  • You really want your netcode to be as modular as possible, especially when it comes to instantiation. I assume you are using the Invector controllers. If so, you should be able to implement photonView.IsMine in the controllers to properly destroy undeeded components and objects.

    However, for the other players, you really should only be syncing relevant variables if needed, positions, rotations, and animations.

    If i can see the setup i can further assist.