• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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