elmstfreddie
The Finglonger
- Reaction score
- 203
Okay... I don't know if I'm missing something obvious or not but this is really pissin me off.
It's pretty self explanatory. Anyways, so, you'd expect the game to either mass works2 works3 works2 works3 etc OR to just show them once then to show first loop over. HOWEVER, works2 then works3 show once, and one unit is created, YET, first loop over never shows. So basically it's stuck inside the loop, but won't do more than 1 loop, or it somehow returns without a return message...
I really don't get why this is happening...
If it matters this is the function NumOfLocusts
JASS:
loop
call BJDebugMsg("works2")
set Locust[index] = CreateUnit(GetOwningPlayer(Owner),LocustId(),GetUnitX(Owner),GetUnitY(Owner),270.00)
call BJDebugMsg("works3")
call GroupAddUnit(Locusts,Locust[index])
exitwhen CountUnitsInGroup(Locusts) >= NumOfLocusts(GetUnitAbilityLevel(Owner,AbilId()))
set index = index + 1
endloop
call BJDebugMsg("first loop over")
It's pretty self explanatory. Anyways, so, you'd expect the game to either mass works2 works3 works2 works3 etc OR to just show them once then to show first loop over. HOWEVER, works2 then works3 show once, and one unit is created, YET, first loop over never shows. So basically it's stuck inside the loop, but won't do more than 1 loop, or it somehow returns without a return message...
I really don't get why this is happening...
If it matters this is the function NumOfLocusts