Stamina drain not working correctly when using enhanced input on UE 5.1.1

You need to set the sprint input like this:
image
Then place your functions like so:

IMO you need to first check if there is enough stamina to drain and then subtract:


When working with floats it’s good practice to use =< or >= and not ==. Explanation
You can also check for the velocity at the same time using AND.

If you set the sprint input to Hold and Release you should be able to use the Ongoing out pin to execute the drain rather than making it recursive-like with the delay node:

Also for both drain and regen you should multiply * delta so that it’s not framerate dependant.

Hope it helps.