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!
Alright. Does it cause leak if using it like this?
JASS:
call GroupEnumUnitsInRange(g,x,y,800.,function groupfilter)
set z=I2R(CountUnitsInGroup(g))
set damm=dam/z
loop
set u=FirstOfGroup(g)
exitwhen u==null
call GroupRemoveUnit(g,u)
call UnitDamageTarget(target,u,damm,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEMOLITION,null)
endloop
call DestroyGroup(g)
set g=null
set dam=0
Yea, thats what confuses me. Whether using an already existing group would cause leak.
Thanks anyway. +Rep
Edit:
@TriggerHappy, thanks for the clarification.
One more question: whether using an already existing group would cause leak? Like the one in the script I posted above?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.