How to keep socket pitch level

Hello,

I spawn a projectile from a socket location, I don’t want to constrain the projectile to the x,y plane, but because the cahracter pitches forward and back it’s trajectory is at different pitches. I want to constrain this so it either always launches level, or with a constant pitch.

Is there a built in way of doing this? without having to create a new rotation. Or is making an offset to the pitch necessary at every time of spawn projectile?

Thank you.

I was getting the location of the socket, and then the rotation of the actor. Getting the transform of the socket by itself fixed this issue.