• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[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