Breaking out from loop?

Parsival

Active Member
Reaction score
6
Hi :)

Is it possible to break a loop and continue actions outside?
Something like break; in C.

I need to create infinite 'for' loop.
I have to use GUI also.

Any ideas?

Thanks in advance.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Does it have to be a part of a single trigger? If not, you can use If/Then/Elses inside a trigger, then if your condition isn't met, then increase the For integer value and run the trigger again.
 

bajaist

Member
Reaction score
4
Is this what you want?
Just make a condition that is true, whatever the loop is:

Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • Unit1 Equal to Unit1
    • Then - Actions
      • Custom script: exitwhen true
    • Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top