Preventing the camera to move to the left

Hello all !
I’m having a bit of trouble with my camera. In the project, I’m using the camera with the third person character; and we use him for a side-scroller with a bit of a top-down, to have some depths. The problem is tht I would like to prevent the camera to move up and down when the character do so, and the character going from left to right, the camera can’t go backward, so the player have to go on.
Is there a way to do that with the camera in the third person blueprint ? Or do I have to do another actor with a camera ? In my head, it’ll be the same problem if I do the second, but I must say that I never really touched to the camera before ^^