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

[Spell] Unit exploding on death to cause damage

Status
Not open for further replies.
Level 28
Joined
Jan 26, 2007
Messages
4,789
Will there be many units like that?
If not, you can use this action (right after the unit spawns) to add the correct event:
  • Trigger - Add to Your Trigger the event (Unit - (Last created unit) Dies)
It does work with multiple units, but adding many events isn't the best option if there will be many exploding units :).
 
Level 2
Joined
Apr 24, 2011
Messages
33
Awesome, man. I was going about it with the wrong ability.

By the way these units will spawn periodically from a region, so yes there will be many units. I'd like the unit to actually actually explode. The spell I was starting off with was Kaboom! and I like the explode animation given to that unit when it used it. Would this explosion be an effect? If so I can't find the effect anywhere.

Thanks for your help, sorry for my noob question.
 
Level 2
Joined
Apr 24, 2011
Messages
33
To get it to explode, do I what do I attach it to? I tried "Art - Effect" and "Stats - Effect" of the ability and neither seem to work.
 
You can add it to the Art - special effect of the UNIT... then make a trigger which runs on unit enters the map, check the unit type, if its the bomb, run the action: Unit - Make unit explode upon death... that will make it run the Art-Special when it dies... the unit won't be leaving a corpse but that is fine since its a bomb right?
 
Status
Not open for further replies.
Top