Topic was automatically imported from the old Question2Answer platform.
Asked By
Arielrandal
Sorry if i cant explain myself good in the title, but i do have a var called stamina, and it reduces when the player is running, until 0, but it can stop until any number beetween 0 and 100 if the player stops running, if the player stops running then a func called recharge adds 20 points to stamina until it hits 100 or more, the problem is that the stamina can add up to 119 if stopped running at 99 stamina, how can i put a maximum to the stamina adding? sorry for my bad english.