Rotate character to camera when aim offset hits a certain pitch?

Hey Guys

What i’m trying to do is make it so the character turns his body when my aim offset hits 90 degrees or -90 degrees

I’ll show you how the offset works in my game, it locks when it hits 90 or -90

Example:

As you can see if i come out of combat mode i have made it so you can run in the full 360 axis but i want the character to rotate to where the mouse is aiming if it goes beyond the aim offset limits

Example:

Thanks guys, i appreciate the help