- Joined
- Sep 12, 2008
- Messages
- 657
I gotta know.. does forGroup remove every unit that is used inside?
because when i do this:
and then in a loop do this:
i get spam of "0".. and yeah, it does run on initialization (the first code),
because its not the entire thing.. the other thing are just debug messages..
because when i do this:
JASS:
set capGroup = GetUnitsOfTypeIdAll('hwtw')
call ForGroup(nodeGroup, function nodeGroupSetupLoop)
and then in a loop do this:
JASS:
call BJDebugMsg(I2S(CountUnitsInGroup(nodeGroup)))
call ForGroup(nodeGroup, function nodeGroupLoop)
i get spam of "0".. and yeah, it does run on initialization (the first code),
because its not the entire thing.. the other thing are just debug messages..