I’ve been searching for days trying to find a solution for this but have had no success via my own experimentation nor found anything online which is with respect to my particular functionality.
So, I’m prototyping the mechanics for a third person shooter and am using the axis input from the Y axis of the mouse to control the camera (via control rotation).
I would like to restrict/clamp the pitch of the control rotation between roughly 60 degrees and 240 degrees, in order that the player cannot aim directly up (90 degrees), nor down (270 degrees).
Below is my current blueprint script for the axis input for the control rotation for the sake of clarity:
Is it possible to clamp the pitch of the control rotation, and therefore the camera? And if so, how can I do this?