I want my character to crouch but not move (resolved)

hello. Basically I want my character to be able to crouch but keep my keyboard and for my character to stay crouched and not move forward





cap2
cap3

No uses flip flop use release
Use the bool in the move code or set velocity to 0

1 Like

Hey @Hector40!

Here is an example of what @DomusLudus explained above:

I hope the above is the solution you are looking for!

1 Like

Hello, I was making the changes but I am somewhat new to this and I did not understand, for example, how you put those functions. In the first answer I got an error, and in the others I don’t know how you managed to put them, if you could help me, basically what I want is for my character to crouch, make him stay but the idea is to keep the crouch button pressed and when I release the button and it automatically gets up and when crouched, do not move forward.

cap4


If you use unreal 5 use the new input system not both

1 Like

brilliant!! Now it bends down and I hold the button down and when I release it it gets up, perfect!! But the only thing left is for him not to move forward when he is crouched and that would be the end of it.

there I understood!! function when you bend over it stays still, thanks

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.