- Joined
- Dec 3, 2011
- Messages
- 366
JASS:
scope Test initializer Init
private function Init takes nothing returns nothing
// WORKING
call AddLightning("CLPB", false, 2000,2000, -2000, -2000)
call GroupEnumUnitsInLine(ENUM_GROUP,2000,2000,-2000,-2000,200,null)
loop
set bj_lastCreatedUnit = FirstOfGroup(ENUM_GROUP)
exitwhen bj_lastCreatedUnit==null
call SetUnitVertexColor(bj_lastCreatedUnit, 255, 0, 0, 255)
call GroupRemoveUnit(ENUM_GROUP,bj_lastCreatedUnit)
endloop
call TriggerSleepAction(3)
// NOT WORKING
call GroupEnumUnitsInLine(ENUM_GROUP,2000,2000,-2000,-2000,200,null)
loop
set bj_lastCreatedUnit = FirstOfGroup(ENUM_GROUP)
exitwhen bj_lastCreatedUnit==null
call SetUnitVertexColor(bj_lastCreatedUnit, 255, 255, 0, 255)
call GroupRemoveUnit(ENUM_GROUP,bj_lastCreatedUnit)
endloop
endfunction
endscope
Idk why func
JASS:
GroupEnumUnitsInLine
I put that func in General Func. I can't see anything goes wrong so I need your help


This is the test map
View attachment Standard Plugin.w3x
P/s: SOLVED
Last edited: