• 🏆 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!

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