Owner object won't rotate correctly

Options
Hello,

I am instantiating a unit/character with PhotonNetwork.Instantiate on a client. When one of my units/characters gets into "attack range" of another unit, I want it to rotate to face the enemy target. The weird thing is, on the non-owning remote clients, the unit rotates correctly how I want it to. However, on the owning object's client, the unit does not rotate correctly -- which is very odd to me. I cannot figure out why the object on the owning client does not rotate correctly, but the cloned object on the other client does rotate correctly.

I am observing the Network Transform script on the object Photon View, and I have checked to sync the transform and rotation of the object. But the rotation is only working on clients that do NOT own the object.

Thanks for any help or ideas.

Comments

  • vadim
    Options
    Hi,
    Where do you run "rotate to enemy logic"? If you synchronize rotation across network, only owner should set rotation.