Align weapon and aim offset with crosshair in center of screen

I really need help here. Have been exhausting myself and all resources I can to try and figure out how to solve my issue and I really have no idea where I’ve gone wrong or what to do next. I am simply trying to make my character use their aim offset to aim at the center of the screen where the crosshair will be.

I set up a proper aim offset using animations from the animation starter pack and I hooked that up in my Animation Blueprint. I have tried basically any setup to try and make the gun aim at the center of the screen but I really do not know what to do get the desired result. I’m not having issue having my line trace hit the cursor, that’s not the problem here. I would simply like for my aim offset to be at a value that would have the character aiming at the crosshair, that is all. I’m working on a flamethrower like mechanic and it is very necessary that the gun line up with the crosshair.

My goal is to create a character who is always ready to at least hip fire while running around and will be able to ADS, tho I feel to move forward this is very important to figure out.


Currently this is what I’m looking at. If someone can help me understand what needs to be done I would very much appreciate it.

I would think you need to set the ControlRotation of your pawn based on the GetLookAtRotation using the pawn and the result of the line trace.

When you say use those to set the control rotation, you’re saying to plug the value from the look at node into my pitch and yaw values for the aim offset?

I was actually saying setControlRotation but I don’t think that’s what you want.

I wasn’t sure you could set the control rotation, I’m not really seeing that option right now.

Yeah no setting the control rotation just causes things to spin around constantly

Hey I’m new using UE4, but even though I’m also late here I think this can help u get started in ur aim/crosshair alignment. Please forgive me if I’m wrong on it, here