Show network rotation for other players weapons, and local rotation for your own weapon.
Sorry for the long title, I am going to try my best to explain what I am trying to do. I just started with the networking features of unity and have reached a point where I am stuck. I am basically creating a 2d game where each player has a weapon, the weapon aims at the mouse location. I have managed to get this done on the server side, but now when players aim their weapons, it looks laggy on those people who are not the host. This is fine for the other players, but I would like the local players movement to be more smooth. Basically, I want to hide the server side weapon on only the local player, and instead show a local copy. The server side weapons should still be shown on the other players so you can see where they are aiming.
I don't know how to close this issue, but I just wanted to say I solved it by having the gun as a child of the player, and using a NetworkTransformChild.
Your answer
Follow this Question
Related Questions
Need help spawning a gameObject on the server UNET 1 Answer
Networking - How do i spawn an object with client authority? 1 Answer
How to sent profile pic over network? 0 Answers
Unet NetworkServer.spawn, correcting my workflow: Found no behaviour for incoming Command 1 Answer
Spawning Network Objects from the client | Unity Netcode For Gameobjects 0 Answers