Adding a clamp to the characters pitch?

Hi, I am trying to add a clamp to the new enhanced input system. Doing this to the old system wasn’t too bad but I am struggling with adding it today. I just want to make it so my third person character cannot look all the way up and all the way down.

Get the Get Player Camera Manager node, drag out of it’s blue pin, release it on an empty space, search for “View Pitch Max” on the menu that pops up, select the Set type node, do the same for the view pitch min, and set them to your desired values.

You don’t need to trigger these nodes continuously after your IA’s, just after Begin Play. And you could also do this inside the character blueprint, but it’d be neater to implement this inside the player controller in my opinion.

Hope this helps! :blush:

2 Likes

Thank you Vis for giving me this advice. I sort of added the solution you have given me but I am not 100% sure I done this correctly and believe I am missing out a step. Do I connect the player camera manager somewhere or to the Enhanced input specifically? I will make this neater in the future I am just trying to get my head around something so simple.

@CookieDz

As above, this can just hook up to Begin Play. And if you really want it neater:

  • create a new Camera Manager BP:

Open it up, punch in any values needed:

  • assign the new manager to the Player Controller:

That’s it. Now you do not need any nodes but can, ofc, still change the values whenever necessary.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.