HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Timers Attached to Units

03-19-2004, 03:46 AM#1
cangrejo
Do I have to make a timer array to see if this timer expires..

Code:
Event: A unit is attacked
Action: Unit - Add a 10.00 second Generic expiration timer to Attacked Unit
Action: Set timer[i] = (Last started timer)
Action: Set i = i + 1

like that?
Anyway my real question is: How do I check what unit the timer is attached to? for this trigger

Code:
Event: timer[1] expires
Conditions: ??
Actions: Kill the unit ? 

Do I have to make a unit array as well as a timer array or is there a simple way of solving this?

EDIT: THEY AUTOMATICALLY DIE? what the heck! ok.. so.. well., this post is retarded i might aswell make some smileys :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( ;) ;) ;) ;)
03-19-2004, 04:10 AM#2
ThyFlame
Yes, they automatically die, hence the 'expiration'.

Test before you post next time... Don't spam smilies, either. :<