I need to limit controller pitch?

hi.I am usingAddControllerPitchInput and I want to limit it, so character cannot look upper a specific value.

but every time pitch increases to 50.012… and then stops at that point.
I truncated pitch first then used in that condition but the same result happened

I need to keep actor pitch rotation between 50 and -50 .

The easiest way - that works for me - to do this would be to set a clamp angle on the rotation/ pitch:

Thank you So much. works great

Perfect, glad to hear.

Happy creating!