Freeze one axis using blueprint

Is there a way to limit the movement axis of a Pawn by freezing one of it’s axes so it could move to specific direction,

let’s say I have a Pawn that have side movements right and left (y axis), how could I freeze that axis when it reaches a specific target ?

I believe you’re looking for axis constraints which should be accessible through the character movement.