How best to implement a crosshair for aiming in FPS game?

I’m wondering about the best way to implement the crosshairs and would like to get some advice.

In my fps game I have a character (blueprint) who can use a weapon (blueprint). Each of these weapons has a point (its is an arrow component) where a bullet is created. The problem is that the weapon doesn’t always point to the centre of the screen where the crosshairs should be.

I have a similar problem with enemies implemented in the same way.

How is this solved?

Thanks for any advice or links to tutorials.

You could try to use a line trace that starts at the barrel of the gun and travels in the direction of the arrow, then project that point to the screen and use that location for the crosshair.