Loops at the same time

monoVertex

I'm back!
Reaction score
460
It is possible to run 2 or more loops at the same time, in the same function? If not, could someone help me and explain to me how could I make a similar thing? Maybe this sound like a dumb question, but I'm new to Jass and I don't know how could I achieve this thing. Thanks in advance. :)
 

emjlr3

Change can be a good thing
Reaction score
395
Code:
local integer i = 0
loop
exitwhen i==3
set i = i +1
endloop
 

monoVertex

I'm back!
Reaction score
460
lol

I meant

Code:
local integer i = 0
local integer x = 0

loop
exitwhen i = 3
set i = i+1
endloop

loop
exitwhen x = 3
set x = x+1
endloop

But these 2 loops don't run at the same time. I want them to run at the same time. It's clearer now? :eek:

EDIT: nvm, problem solved
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top