Restrict the camera on Z Axis in 2D side Scroller

Hi, first off I need to make it clear that I’m a total noob to making games in UE4 so please be very clear and concise in your answers.

I have made a 2d side scroller but need to minimise how much the camera (which is attached to the player) follows the player on the Z axis. I want to still be able to see the floor of the game when the character jumps but if he climbs over a certain height I would like the camera to follow again.

Thanks!

I was able to get this behavior by setting a minimum Z float and updating the camera’s position in my player’s Event Tick.

Thanks Kristian, sorry for the late reply but I only just saw this now. Better late than never!