how to block a camera pawn so it doesnt go too far away from actor?

instead of moving on the z axis

can you declare the position of the z axis and make it move on another axis, like on the XY plane and the Z is stated , which i think will give you the Z axis according to Differential Equations