• 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.

[General] Cooldown Timers with arrays bug?

Status
Not open for further replies.
Level 14
Joined
Apr 20, 2009
Messages
1,543
Could you perhaps show us a trigger or script so that we can analyze the problem?

meatfactory said:
All started timer arrays except the 1st
[ example: RESTimer(1) ] don't seem to work. Any ideas?
How would we be abled to know what is wrong if you are not showing us what you are doing?
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
Set the initial size of the timer array to the highest index you're going to use or use CreateTimer() for the needed indexes. Timers are not automatically created, except indexes 0 and 1 in GUI.

Good analyzation :D

It might be that he is starting a timer that doesn't exist yet instead of first creating it and then starting it. And as shown in your explenation this would only work with the first timer of the array if the array index is not set, since the default is 1.
 
Status
Not open for further replies.
Top