How to Move my Pawn up on z axis on key press and return to its previous location on release

If you don’t care by using a step-like movement then try scaling by -1 the vector when you release the flap button like this.

If the actor rotates on any of the X or Y axis this probably won’t work because the Up vector isn’t aligned to the Z axis, in that case you could just use the Height variable directly.

1 Like