Making a character Float in UE4


I have spent 2 days on this and have exhausted all my ideas.
I want to make an ability where i can make a character float in place instead of disable gravity and that character is floating up into orbit. I tried all sorts of ideas but these do not work.
Is there a way to clamp Z Axis via vector when disabling gravity?
Is there another way of doing this???



Set the movement mode to Flying in your CharacterMovementComponent to ignore gravity. Another way is to use Pawn instead of Character class but then you’ll lose many fuctionalities of Character such as jumping and walking.