- Joined
- Oct 23, 2011
- Messages
- 182
Is it okay to exit in mid of FirstOfGroup loop?
since GroupEnum clears the group everytime
(the group I'm using is global and permanent)
since GroupEnum clears the group everytime
(the group I'm using is global and permanent)
JASS:
//! runtextmacro GroupMacro("u", "x", "y", "325")
if IsEnemy(u, globalUnit) then
set x = GetUnitX(u)
set y = GetUnitY(u)
set u = null
exitwhen true
endif
//! runtextmacro GroupMacroEnd()