• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Aborting a periodic timer event

Status
Not open for further replies.
Level 10
Joined
Aug 19, 2008
Messages
491
Hey dudes! :grin:
I'm making this nice little spell in vJass, all JESP and stuff. Seems to work fine, except 1 major flaw.

The spell is a simple morph spell, but with a twist. For the duration of the spell, the morphing unit will be ordered to attack move to a random point every time the timer is fiered.
However, it seems like the timer never ends, not even after I call "ReleaseTimer()" (it's from Vexorian's Blue TimerUtils) or "DestroyTimer()" will it abort.
Adding a "checker" such as a boolean array won't work since the timer will still run and cause lag.

+Rep to dude with best solution :thumbs_up:
 
Level 10
Joined
Aug 19, 2008
Messages
491
God damnit I just noticed... There's nothing wrong with the ReleaseTimer(), DestroyTimer() or PauseTimer(), it was my code's fault. :xxd:
Somehow the duration of the spell is around twice the duration of morph, so it kept running for another 5 seconds or so.
This could be closed now I guess... my code's problem doesn't belong to this topic.
+Rep to The Reborn Devil because he made me see the problem.
 
Status
Not open for further replies.
Top