
Originally Posted by
Habbz96
Hi, thanks for the comment, im new to programming can you please explain an alternative.
Since you're so interested to learn.. A System.Timers Timer is thread-friendly when it comes to small programs so you should code a clockwork timer that runs throughout your emulator when it starts up and then use a quick cooldown like say...
Code:
// The integer that takes the current timeframe and uses it as a cooldown.
int Cooldown = Clockwork.Time;
// The while() loop sets a new instance until the integer reaches its time set.
while (Clockwork.Time > Cooldown)
{
Cooldown++;
// Preform Cooldown or Action
}