Found in the 3D Action RPG demo a bug with the sprint mechanics, and stamina consumption.
1) Sprint until reaching 0 stamina, and keep pressing the shift key
2) The stamina regen fights with the Stamina Block, and never goes up.
1) When stamina reaches 0, and ignores the shift key.
1) stamina regen to fill the bar.
In my tutorials I'm using similar logic, but using the sprint as an Ability, the ability is triggered via control map, but having a status stamina condition makes no difference, and the ability is triggered anyways.
If you keep holding down the sprint key, the player will sprint again when enough stamina was recovered, immediately running out of stamina again.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!