Need help with a stamina system

I have got a stamina system within my game, if the player holds left shift they are able to sprint but if they do not have the stamina they’re not able to do it

I basically want to do the same with the jump, so if the player is below a certain stamina it doesnt allow them to use the jump input. And for the left click when they attack if they do not have a certain amount of stamina they cant press left click

It might be simple to do but I cant figure it out at all so any help or suggestions would be extremely helpful

Thank you :slight_smile:

Make a function that checks what the current stamina is.

If the stamina is less than your number, set a bool.

Use that bool as input to a branch at the beginning of each of the input actions to decide whether or not the rest of the code will be executed.