Incorrect linetrace end location on Multiplayer linetrace integration


Hi,

I’m taking incorrect location of linetraceing when I’m executing linetrace on the Server. CameraComponent is replicated but the location seems wrong on Server side. Linetrace hitting up to the upwards instead of the character’s camera location. The code works correctly on the server-side instance.

I solved the problem using controlrotation’s forward vector. and the camera component doesn’t needs to be replicated in this case.