Exiting a trigger mid-loop?

Matemeo

New Member
Reaction score
20
I made a respawn trigger that checks how many of the current creeps are alive, then creates more based on how many are alive. But unfortunantly, it loops too much sometimes, and spawns too many units. To make it work I need exit the trigger 100% mid-loop, and w/o hampering the triggers ability to continue functioning. Any help would be appreciated.
 
I

IKilledKEnny

Guest
Create the the loop in seperate Trigger, then run it from the first trigger or skip remaining actions. If you could post I could help you once I get back home.
 
K

Kerberos

Guest
You can define a variable to be 1/10 the number of creeps on the map (or something) and then say

Code:
For each Integer A from 1 to NumberOfCreeps, do (Actions)
    Loop - Actions
        Create 1 Creep for Player 12 (Brown) at (Center of (Playable map area)) facing Default building facing degrees

Edit: Darn, beaten to it.
 
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