How to lock camera Z-axes?

This works for other axis as well, not just horizontal axis. Just change the break vector component & make vector component to the axis you want affected. I didn’t want my camera to move horizontally while I moved. thanks HungryDoodles really simple and helpfull.