Page 1 of 1

Help on Wisp Wheel with local variables

Posted: Fri Mar 18, 2011 7:03 am
by samtre
is there a way to create an independent wisp wheel (the units has Locust ability), when a spell is casted, the 'wheel' is created and it acts without the use of global variables (to save (ALOT) space and leak) of arrays. I was able to create a local trigger and tested it, with a loop of 360/180/120 and waiting time of 0.03 each with angle increment 1/2/3 degree accordingly. But because of the wait limit blizzard set (approx. 0.30sec wait(action)) its going way slow......

so if its possible, how to fit a whole wisp wheel system into a trigger, i've thought of a way to handle it using global groups, but somehow because the units have Locust ability, you can't changed their position based on their facing angle (i used this type of WW which uses units facing angle because there's no middle point of the circles)

Re: Help on Wisp Wheel with local variables

Posted: Fri Mar 18, 2011 7:44 am
by 3ICE
Globals have nothing to do with the severity of memory leaks, they take up the same amount of memory as locals do.
A LOT are two words.
Use timers, not waits.
You need more than one trigger. One to initialize, one to periodically update the units.
I am pretty sure locusted units do have a facing angle.