• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Stop spawning

Status
Not open for further replies.

ocklebo

O

ocklebo

I'd like to know how to make a trigger that stop spawning when a building is destroyed. Like those in LOL2,DOTA
 
...Add a condition to your spawning trigger (If/Then/Else work the best) Just make the condition boolean checking if a unit is alive, the unit should be the barrack/castle or whatever. So it would look like this:

Code:
   Event: Every 30 seconds of the game
  Conditions: None
  Actions: If/Then/Else-
    If (Boolean - (Barrack 01) is alive equal to True)
    Then (Unit - Create 03 Footmen at (Position of (Rally-point of Barrack 01) Facing default building degrees)
    Else (Do Nothing)

Something like that should work, there is no movement triggers in this piece so you will need a different one for that. You can just put multiple If/Then/Else of this type in the same action catagory, just make sure one isnt inside the other and it should be OK.[/code]
 
Status
Not open for further replies.
Back
Top