I have a small loop that creates wisps in a + shape. Right now, it only works if I comment out the variable setting lines in the following:
If I uncomment:
It will not work, but if I leave them commented, it works -_-' Anyone know what's going on?
JASS:
//Wisp Wheel 1
set x = GetRectCenterX(gg_rct_Wisp_Wheel_1)
set y = GetRectCenterY(gg_rct_Wisp_Wheel_1)
loop
set i = i + 1
exitwhen i > 4
loop
set n = n + 1
exitwhen n > 8
call CreateUnit(Player(11), 039;wisp039;, x, y, 270)
//set Wisps[Index] = bj_lastCreatedUnit
//set Index = Index + 1
set x = x + 64 * Cos((90*i) * bj_DEGTORAD)
set y = y + 64 * Sin((90*i) * bj_DEGTORAD)
endloop
set n = 0
set x = GetRectCenterX(gg_rct_Wisp_Wheel_1)
set y = GetRectCenterY(gg_rct_Wisp_Wheel_1)
endloop
If I uncomment:
JASS:
set Wisps[Index] = bj_lastCreatedUnit
set Index = Index + 1
It will not work, but if I leave them commented, it works -_-' Anyone know what's going on?