Problem with Sprint

I have an updated sprinting system. At first glance it seemed to be working, until I pressed the sprint key whilst standing still and my stamina still depleted. To try to fix this, I added a new Boolean that checks if the player is moving and added this as a condition to start my sprint, which fires off everything else. The problem is that this “fix” didn’t do anything to solve my bug, I can’t figure out what it is. This system is very important for one of my main unique mechanics.

This is coming off from the False branch

239409-sprint-4.png

That forward vector is most likely normalized (length always 1) it doesn’t represent the characters speed.

forward vector doesnt really have anything to do with movement it basically just says which way the character is facing. i would try getting the characters velocity and working off that instead. to get the velocity you will probably need to get the movement component of the character and drag off that.