- Joined
- Nov 29, 2006
- Messages
- 2,482
Hm well, I've seen examples of improving Integer Loops, and Unit Groups.
But is there a way of doing this for a force as well?
I mean, this works for a unit group;
is there something similiar for a force, or do I have to do
hm, it would be great if there is one, thus its otherwise screwing my locals.
/regards
But is there a way of doing this for a force as well?
I mean, this works for a unit group;
JASS:
function LoopEx takes nothing returns nothing
local group g = CreateGroup()
local unit u
loop
set u = FirstOfGroup(g)
exitwhen u == null
//loop actions
call GroupRemoveUnit(g, u)
endloop
call DestroyGroup(g)
endfunction
is there something similiar for a force, or do I have to do
call ForForce( my_force, function my_func )
?hm, it would be great if there is one, thus its otherwise screwing my locals.
/regards