Sprint with Stamina, does not stop. Help Me Please!!!

Sprint with Stamina, does not stop. Help Me Please!!!

I’m using a system in my stamina regen. Everything is working. OK!

BUT

However,

When I press the Shift key to sprint, even with my character stopped or blocked by something the stamina is indiscriminately consumed.:confused:

The problem: I need to be able to say that stamina should only be consumed if the character is in “inputAxis MoveForward”, Always forward. And is the thing that I’m not achieving…

Please my character is very tired!:frowning:

Sprint Condition

Regen Mechanics (working very well)

Sorry I think I has solved it with Compare Floats

My movement input is like this now

Then I added a new branch in stamina regen

Now this is working fine for me:cool: