Arkan
Nobody rides for free
- Reaction score
- 92
I was wondering, which method is best/fastest?
#1
#2
I think #2 would be better, but I could be wrong, what do you think?
#1
JASS:
function ThisFunctionRunsEverySecond takes nothing returns nothing
local group g = CreateGroup()
call GroupEnumUnitsInRange(g,x,y,400,Safe)
// actions
call DestroyGroup(g)
set g = null
endfunction
#2
JASS:
scope something
globals
private group G = CreateGroup()
endglobals
function ThisFunctionRunsEverySecond takes nothing returns nothing
call GroupEnumUnitsInRange(G,x,y,400,Safe)
// actions
call GroupClear(G)
endfunction
I think #2 would be better, but I could be wrong, what do you think?