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

[JASS] killing a unit when starts constructing a building

Status
Not open for further replies.
Level 7
Joined
Jan 1, 2005
Messages
133
i need help 2 make a trigger or trigger code that makes a unit die when it starts constructing a building, like the zerg drone in starcraft. I need the unit 2 die but the building has 2 start and continue 2 build. If any1 can help me plz msg me or post any advice on here.
 
Level 7
Joined
May 6, 2005
Messages
390
Daelin said:
Well, its a building like Ancient of War and other Ancients. I'm not sure but maybe if you give it the cattegory of ancient, it will destroy the drone when its built. Try this!

~Daelin

Good idea, but the builder first dies when the construction are finished.. Try using summon (undaed build tecnology), there is probably some events for that.
 
Level 7
Joined
Jan 1, 2005
Messages
133
Yeh i alrdy have all the buildings im using set 2 ancient, i am going 2 try the undead as well with the drone. atm its under a orc peon and when it goes 2 build it becomes invunerable but doesnt die so hopefully ur ideas daelin & blade i can figure it out. thanx for all ur help guys
 
Level 7
Joined
Jan 1, 2005
Messages
133
Well ive figured it out. Snaky is correct. The unit must b nightelf, changed from wisp unit and buildings that r being constructed must b of ancient classification. The unit will disappear and die while the building is being built and if u cancel the unit will reappear. So this didnt need a trigger or script ast all. thank u every1 who has giveing answers and advice and ideas 4 me 2 work this problem out for my maps.
 
Status
Not open for further replies.
Top