How to fix blueprint player in Z axis

I am trying in a 2d game to have a fixed Z. I do not want the camera to follow the character if he is falling down a cliff for example.

Hey @remzXD

You can set the target offset in the SpringArmComponent component.
I am not sure how will looks when the offset is set on the fly.

Take in consideration your are moving the camera with the players. If you want to keep a camera at an specific height you may want to implement something custom for this case.

Let me know if you want help with that.

This sounds like a perfect job for the Camera Manager:

When the player is falling down, pass True and provide new desired camera transform. Camera Target is the actor the Player Controller is currently looking through, the actor whose active camera is in use. In this case, that’d be the player.