I am trying to restrict my game so that the player can only look up/down when the player is already targeting.
I currently have pitch mapped to mouse y and targeting to the mouse right button, so I am trying to make it so that the player can only look up/down when pressing the right mouse button. i.e. I want to stop reading pitch input unless it is pressed.
But, I am a bit lost as to how I can stop reading the pitch input when the player is not targeting - I am assuming I could achieve this by clamping pitch at 0?