I'm trying to find a way to disable only the horizontal movement of a character blue print in the Unreal 4 Game Engine. I want to be able to restrict the horizontal motion while jumping and shooting, but not the vertical motion so the character just sits in the air.
Steven Kollerer
Use an if-statement before you apply the input value. Yeah, it's that simple. When you made the movement for your character, you also at some time had to set up a function tied to an input which applies the value of the input to the movement.
I guess your issue 1 year ago was finding it and you probably did find it by now, but for anyone else: It most certainly is inside your character's cpp/blueprint (Surprise)
My bad if there is some sort of standardized movement system which requires no set-up at all.
Also, you can use plane restrictions from your movement component to lock the character to certain axes.