I’m trying to make a Third-Person Shooter game, so I want the crosshair to move around the screen to where the gun is pointing like in Jedi Knight. So far, I have a linetrace from the gun until it hits something, and I’ve converted the hit location to 2D screen space, but the crosshair moves around one quadrant of the screen and keeps snapping to the default position, and it’s never anywhere near the impact point in screen space.
What should I do? What [blueprint] code should I use to get the desired effect?