How do I make this code better, it currently is a 360 aiming system for a 2.5d sidescroller, but dosnt work correctly

Current blueprint

I did 2.5Daiming like so, first the input:

Top half of comment box is teh thumbstick stuff:

Then updating direction floats in a function in tick:

The +40z bits there are just to raise the origin to shoulder-ish level.

Is a bit of a roundabout way to do it, but I split off the input like that so mouse or gamepad would work, and so NPCs could just use their focused actor to set the target loc.

There’s a bit more after the wire going offscreen where I extract the aim pitch for the aimoffset in the anim bp. Is a bit wonky tho lol.