[Trigger] Unit builds building - building unit dies

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