• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Unit builds building - building unit dies

Status
Not open for further replies.
Level 4
Joined
Aug 26, 2009
Messages
32
Lets call our unit a Preperation Pack. When our unit builds a building, say a small farm, how can I make it die, I think it has to be using triggers.

Hows this:

  • PrepPackOneBuild
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Preperation Pack
    • Actions
      • Unit - Set life of (Triggering unit) to 0.00
I'm not good at triggering so I quickly put it together
 
Level 4
Joined
Aug 26, 2009
Messages
32
Sorry, I wasent exact, I wanted the unit to die no matter what ability it cast. I figured it out now AND tested it.

  • OneBuildPrepPack
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Preperation Pack
    • Actions
      • Unit - Kill (Triggering unit)
My unit was a preperation pack, and using stolen resources, the pack unloaded them upon the spot and builds it.
 
Status
Not open for further replies.
Top