How to lock player rotation(Not camera)

I have a character that uses a sword and shield, so I made it so when he swings or does an action he cant move in any direction and soon after the action ends movement is restored. The issue is that the character can still rotate.How would I go about stopping their rotation too?

There’s a similar question here. Basically , you want to call DisableInput on player controller on animation start, and EnableInput on Animation End. I would use AnimNotify for this personally.

U can try to temporary disable use controller Yaw rotation in the player blueprint default settings

Thanks this helps a lot.

please mark as answer, if it helped you :slight_smile:

So I’ve tried this, but it messes with root motion. I was using it on a rolling animation after landing and found that my character rolls out of his capsule and then bounces back in once the animation completes. Any other ideas?