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

Using an effect as a death animation?

Status
Not open for further replies.
Level 5
Joined
Jul 10, 2009
Messages
89
I want to use a wall model in my map, but unfortunately, it has a lame death animation. I was wondering if it is possible to add an effect to a death animation, so that as soon as a unit begins to die, the effect - a cloud of smoke, an explosion, etc. - will occur.

Thanks.
 
Level 4
Joined
Jun 12, 2009
Messages
57
I don't have world editor but it should be close to this.

  • Event
    • Unit - Dies
  • Conditions
    • Dying unit equal to (heres your unit)
  • Events
    • Create special effect at position of dying unit
    • Destroy last created special effect
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
Use this this trigger:

  • Special Effect
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • Special Effect - Create a special effect at TempPoint using <Model Path>
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Unit - Remove (Triggering unit) from the game
Remove unit only if your unit cannot be revived/resurrected.

If your unit won't be removed, set ''Death Time'' to 0.01 and ''Death Type'' to ''Can't raise, Does not Decay''

For model path, I recommend:

Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
or
Objects\Spawnmodels\Human\HCancelDeath\HCancelDeath.mdl
 
Status
Not open for further replies.
Top