• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] TimerUtils, What is that ?

Status
Not open for further replies.
TimerUtils is a timer system. It serves two main purposes:
1) Timer recycling - This will prevent you from having to constantly create and destroy timers. Instead, it will reuse timers over and over until it needs to create more to suit your needs.
2) Timer data attachment - When using timers, you will have a "callback" function. If you notice, you can't pass arguments into that function. (since code arguments cannot have arguments) Therefore, you have to use some sort of data storage and retrieve it in the callback function. If you use structs or arrays, you can use TimerUtils to "attach" the data to the timer and retrieve it in the callback function.

For more information, see this tutorial:
http://www.thehelper.net/forums/showthread.php/162408-How-to-Use-Timers-in-JASS
 
Status
Not open for further replies.
Top