Linetrace Crosshair?

anonymous_user_3ad9ae12
Thu, 12 Nov 2020 14:58:07 +0000
UI

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?

2 posts - 1 participant