Warcraft III resources & community, 2003–2006 · archived

global timer?? exists? i need one

6 posts
#1

global timer?? exists? i need one

Hi everyone. I'm Kind of new to JASS and have a problem

I'm creating a bull rush ability in which a trigger uses a timer (to accumulate damage as the hero runs)and another trigger destroys it (when someone gets in the way of the runner)

For that I need a global timer, not a local one. Is there a way to declare one?? I assume the variable type timer in the variable manager refers to countdown timer, but that's not what I need.

Thnx
#2
actually, you need a local timer, and use TimerStart() :wink:

I suggest you look at an ability that uses the Local Handle Vars ( ex. my Whirlwind or Jump in my Spellpack Omega that i just submitted )
#3
thnx poot, but i already know how to use timers ;) learned in the utorial posted in this forum about jass, pretty cool, i must say; learned in one day

i wanted a globl timer and just thought there could be one.

Think of the ability of shoting lots of magic missiles (from dummy units created every 0.05 secs) as long as no one hits you

You would need to make one trigger to activate the timer, and another one with the Unit attack event to destroy it. Then you would need a global timer, don't you think?
#4
Nah. you could use a global Boolean, or something or other.
#5
geat idea... owe you one (i just couldn't sleep thinking about the timer... ahhhh)
#6
LOL, np