Sprint bug

Hello, i’am new in Unreal Engine, i search long time but i can’t find a resolution to my problem.

i have 2 blueprint code but none of them is what i want.

The first one:

My character can speed up before a jump and jump it’s cool but he can also speed up while he is in the air and i don’t want it,
My character continue to sprint after he is down (my finger is on the button of sprint) and i want it it’s cool.

The Second one:

My character:

-He can speed up before a jump and jump, and when he is on the floor again he continue to sprint (cool)

-He can’t speed up during a jump when i push the sprint button while he is in the air (cool)

  • if i push the sprint button before the jump, he can sprint during the jump and after the jump too (cool), but if i push the sprint button when he is in the air, after the jump, he don’t sprint when he is back to the floor.

What am i supossed to do?

Sorry for my bad English :frowning: