Hey there.
It would be best if you could show of some of your code in order to get it setup properly. I have made similar thing as above, maybe it will help you out.
So your bool variable is getting set to true when you fire off your event, when the clock (custom event) starts. Once it reaches it’s maximum value it will re-enable (reset the bool to default) usage of your event and set the time to 0.
Bear in mind that this is a very basic setup, but you don’t want to over complicate things too much.