EdgeOfChaos
E
EdgeOfChaos
I want to know when you can safely use a Wait, and when using a Wait will end the function. Consider this loop:
When I run this in my map, this Wait ends the function. The first text will display, the second will not (not even one time). But other places in my code, a Wait will function as intended. What determined whether this happens or not? And it is not just the loop. I've put waits in loops before and had them work, and waits in other parts of my code have broken it.
(And yes I know waits are bad, etc.., but I have reasons for using them)
JASS:
loop
exitwhen b.isBattleOver()
call DisplayTextToForce(GetPlayersAll(),"Battle not over")
call PolledWait(1.0)
call DisplayTextToForce(GetPlayersAll(),"Battle not over")
endloop
(And yes I know waits are bad, etc.., but I have reasons for using them)