• 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.

Stop spawning

Status
Not open for further replies.
Level 1
Joined
Aug 11, 2005
Messages
2
I'd like to know how to make a trigger that stop spawning when a building is destroyed. Like those in LOL2,DOTA
 
Level 3
Joined
Jul 16, 2005
Messages
27
...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.
Top