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

[Trigger] Unique Unit

Status
Not open for further replies.
Level 19
Joined
Oct 1, 2008
Messages
1,667
Quick question, how would I make a trigger that states that only 1 of a certain type of unit may be in play at one time?
This is what I have, but it doesnt work...

  • Single Unit
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to [Unit]
    • Actions
      • Trigger - Turn on SingleUnitKill <gen>
  • SingleUnitKill
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to [Unit]
    • Actions
      • Unit - Remove (Last created unit) from the game
      • Trigger - Turn off SingleUnitKill <gen>
 
Status
Not open for further replies.
Top