Disable crouching while in air

Hi, I’m having a problem where whenever my character jumps, it can also crouch. When pressing the crouch button in air this causes my character to snap to a location higher than the one it already is in. This does not affect anything related to animations but with this you can look through the ceiling of rooms very easily.

A picture of how I set up the crouching in the character blueprint is below.
Is there any way to disable crouching while my character is in air?

Hi try this :slight_smile:

if the character should Un Crouch on jump you would need to execute the uncrouch there.

Thank you!

Just for people who are looking to disable abilities while in air, here is a text so that google lets you find this article, since this is how it can be solved also. Thanks mate! Didnt know the “Is Moving on Ground” function

Thats exactly what google did and im thankful