How to lock camera X-axes?

I’m making an slide scroller game. But I only want the camera to follow on z axis. I
saw a lot of posts, like this one:

but it’s for a old version of ue4.
Can someone explain me how to do it in this version of ue?

It works you only change z for x thts all! :smiley: solved