Code: Select all
local group g=CreateGroup()
...
if SubString(s,0,4)=="-del"then
loop
exitwhen i>1
call RemoveUnit(FirstOfGroup(g))
set i=i+1
endloop
endif
i tried with the ForGroupBJ command too, but it didn't work either.