For A = 1 to 12 do __Set Position[A] = Position of Hero[A] CS: set bj_wantDestroyGroup = true Pick every unit in (Units of Neutral-Aggressive) __Set Position2 = Position of Picked unit __For A = 1 to 12 do ____If Distance between Position[A] and Position2 < 100 Then ______Kill Hero[A] __CS: call RemoveLocation(udg_Position2) For A = 1 to 12 do __CS: call RemoveLocation(udg_Position[bj_forLoopAIndex])
Если группа уже записана в переменную, bj_wantDestroyGroup не нужно использовать.
Сомнения. Кажется обнулить забыли.(set Position = нет локации)
Код
Pick every unit in (Units of Neutral-Aggressive) and do actions Set Unit1 = Picked unit For A = 1 to 12 do actions CS:if IsUnitInRange(udg_Unit1,udg_Hero[bj_forLoopAIndex],100.0) then Kill Hero[A] CS:endif