Line Trace with uncentered crosshair

Basically I have an FPS project and I’m trying to perform a Line Trace for shooting the gun. It works as I want with a centered crosshair made in a widget blueprint but my game uses an uncentered one. I made this blueprint here which works for 16:9 ratios but if i use any other ratio the line trace becomes really inaccurate.

Ok I figured it out thanks to Dexgecko’s post here. Just one more thing you need to do is for the Local to Viewport node, set the Local Coordinate to half of the size of your crosshair and the Line Trace will be centered in it regardless of the ratio of the screen.