How can i prevent sprinting unless stamina is full.

I am trying to prevent players from tapping sprint button while stamina is regenerating. Only allowing them to begin sprinting once their stamina is full. How can I make that possible with my current graph? TIA

Hi @Hectoroonie! Welcome to the forums!

I see that you have a “Stamina” and “Max Stamina” available. You can do a branch after your “Sprint” code, wherever that is, and for the condition use “Stamina” = “Max Stamina” and off of true, continue the code, and off of false, do nothing.

Let us know if there’s more to this, and if there is make sure to get us a picture of your Sprint code! :slight_smile: