Delaying code execution without locking thread?Solved
Hey,
There is a timer.Once(), if you set that to 60 seconds it will wait 60 seconds and then fire the code.
I’ll make you the proof of concept in a few hours when I get to my pc!
5bee9f4b73cc8.png MrBlue
Hey,
There is a timer.Once(), if you set that to 60 seconds it will wait 60 seconds and then fire the code.
I’ll make you the proof of concept in a few hours when I get to my pc!
You sure that the timer.Once() doesn't work like the other timer and just fire an other function independently from the function it is in ? 
ZeTioZ
You sure that the timer.Once() doesn't work like the other timer and just fire an other function independently from the function it is in ? 
All timers work the same, they delay whatever code you have set in them.
5bee9f4b73cc8.png MrBlue

Here is a simple proof of concept, typ /start in chat and then 'yes' or 'no' in chat.
Plugin: https://www.pimmoeskops.nl/downloads/CooldownTest.cs

Mmh, I read the code and yes that's pretty good, always not a code delayer rather a delayed check but it solves one of the problem, making a different delayer for each check ! So it's nice !

Locked automatically