HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Check for a timer?

08-02-2006, 02:23 AM#1
Valdez
Is there any conditon that can check to see if a specific timer is already running? Or any way to check if a specific timer is running at all?

I ask this because whenever a hero dies in my map is starts a timer until the next spawn but I don't want the timer to restart or create a whole new timer all together! (Keep in mind 1 timer revives multiple heros).

I'm thinking chances are I'm going to have to just make it a periodic event all together.

Thanks for any help,



~Valdez
08-02-2006, 02:40 AM#2
Rising_Dusk
Collapse JASS:
if TimerGetRemaining(YourTimer) > 0 then
    //Do Stuff
endif

Just check if the timer's remaining time is greater than 0.

Make sure its timer is only above 0 when running though.
That's easy to do though.