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

1 Unit Spawn Only

Status
Not open for further replies.
Level 3
Joined
Jan 28, 2009
Messages
42
Hi! Im looking for a way to have only 1 special unit spawned at a time.
  • Events
    • Player - Player 1 (Red) types a chat message containing test1337 as A substring
  • Conditions
    • bPasued Equal to False
  • Actions
    • Unit - Create 1 test1337 for Player 12 (Pink) at (Center of stuffs <gen>) facing Default building facing degrees
I want there only to be spawned 1 test1337 at the map. If there already is a test1337 at the map then there will spawn no new. Help asap please. thanks
 
Last edited:
  • Spawn Trigger
    • Events
      • Player - Player 1 (Red) types a chat message containing test1337 as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units of type tester1337)) Equal to 0
        • Then - Actions
          • Unit - Create 1 tester1337 for Player 1 (Red) at (Center of stuffs <gen>) facing Default building facing degrees
        • Else - Actions
 
Status
Not open for further replies.
Top