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

[Trigger] Making Undead Dissipate with Triggers ;P

Status
Not open for further replies.
Level 13
Joined
Mar 21, 2014
Messages
893
Shall we start by now? Now let's rock!

[trigger=Follow these steps]Undead Dissipate
Events:
Unit - A unit dies
Conditions:
(Unit-type of (Dying unit)) Equal to UndeadHero
Actions:
-------- Add your hero's death time+1 second here --------
Wait HeroDeathTime+1 seconds
-------- Set Varible here --------
Set DyingHero=Dying unit
Set DyingHeroLoc=Position of DyingHero
-------- Trigger --------
Special Effect -Create special effect at (Center of (DyingHeroLoc)) using Objects/Spawnmodels/UndeadDissipate/UndeadDissipate.mdl
Wait 2.50 seconds
Special Effect - Destroy Last Created Effect
-------- The End --------[/trigger]
I think it'll help.
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
waits are inaccurate, hence why you probably use the +1 second there.
Saving unit into variable is useless if you don't use the variable at least 2 times.
Undead dissipate effect can be destroyed immediately and the effect will still play fully, because it lacks "death" animation.
You don't remove DyingHeroLoc.

Also, it would be great if you at least wrote what you want, instead of giving trigger and making people find out what you even want.
You're asking for help, you're not giving us homework that we are compelled to solve for you.
 
Status
Not open for further replies.
Top