HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

JASS Local Timers

01-22-2006, 12:50 PM#1
Peekaboo
I have a couple of questions about local timers, i'm completely new to JASS but i'm trying to learn

1. Can you make local timers? If so, whats the code for it :o
2. How do you make an event that fires when a local timer runs out

Any help appreciated :)
01-22-2006, 01:18 PM#2
Vexorian
there are 2 things that can be called local timers, so please be more specific?
01-22-2006, 01:25 PM#3
Peekaboo
A countdown timer that is specific to a function, to make a multi-instancable ability

By the way, can someone move this to Triggers and Scripts, posted in the wrong forum :o
01-22-2006, 08:44 PM#4
qwertyui
In most cases you can get by simply be assigning all necessary globals/eventResponce values to local variables when function starts.

For more advanced cases, you use ExecuteFunc(code function)
Every executeFunc starts a function in its own new thread, so their waits are all independent of each other.

I have never so far encountered a situation where i absolutely HAD to use executeFunc though :/. But then again, i didn't do that much custom abilities yet, where multiinstanceability is needed the most.