end a loop

Iwan_Krissov

New Member
Reaction score
18
Is there a way to end a loop before it reaches the end, I mean before it has gone trough all the integers?

example:
I have a loop from 1 to 10. if something special happens, I want the loop to end at integer 6 (or something), if not, I want it to continue until 10

I already tested "skip remaining actions" within the loop, but it ends all actions after the loop too, which I dont want...
 

Trollvottel

never aging title
Reaction score
262
if < condition to skip>
then custom script: exitwhen true


it will end your loop instantly

/edit arg to late -.-
 

Iwan_Krissov

New Member
Reaction score
18
-->Custom Script: endloop
I did try this too and it gave a compiling error. in the game, the whole trigger did not run at all...

-->Custom script: exitwhen true
perfect. thank you :)
 
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