How do I make the regeneration system turn off if a character performs another action within a certain time of the initial action

Sorry as to your question. The stamina is regenerating in a loop the delay is just for delaying that timer so the stamina regen doesnt happen as soon as an animation begins