- Joined
- Oct 23, 2011
- Messages
- 182
a lot of people seem to be using bj_lastCreatedGroup.. to save a group handle?
the problem is, sometimes I have another FirstOfGroup loop called from functions inside the action. This often collides and is annoying to debug.
any solutions? (this isnt just with my systems.. snippets in jass section used it too)
JASS:
call GroupEnumUnitsInRange(bj_lastCreatedGroup,this.x,this.y,collsion_size,null)
loop
set u=FirstOfGroup(bj_lastCreatedGroup)
exitwhen u==null
call GroupRemoveUnit(bj_lastCreatedGroup,u)
if SomeCondition then
the problem is, sometimes I have another FirstOfGroup loop called from functions inside the action. This often collides and is annoying to debug.
any solutions? (this isnt just with my systems.. snippets in jass section used it too)