• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Removing the hero ghost death animation

Status
Not open for further replies.
Level 9
Joined
Jul 30, 2018
Messages
445
Hey!

Sorry, if this is asked already, or there is a really simple solution, but I'm just too blind to find it.


Anyway, I have a map where every unit is a hero, since I want them to level up and use items and gain stats and so on, but the problem is that since they are all heroes, they don't seem to leave any corpses behind, but instead they become these transparent ghosts which then rise up. Is there a way to remove this effect so that the "heroes" will die just like normal units, falling on the ground and leaving a pile bones and flesh behind?
 
Didn't find anything there either. I guess the only way is to make a trigger create a corpse of the unit manually... Seems just a bit stupid thing to do for such a simple matter. Doesn't remove the rising ghost, though, but at least a corpse is left behind.
 
  • Events
    • Unit - A unit dies
  • Conditions
    • (Triggering Unit) is a hero equal to true
  • Actions
    • Wait - 1.00 seconds //whatever seems long enough to play most unit death animations before hiding them
    • Unit - Hide (Triggering Unit)
    • Unit - Remove (Triggering Unit)
    • -------- make corpse here --------
Removing the hero may be what you want to do, maybe not.
 
Hey!

Sorry, if this is asked already, or there is a really simple solution, but I'm just too blind to find it.


Anyway, I have a map where every unit is a hero, since I want them to level up and use items and gain stats and so on, but the problem is that since they are all heroes, they don't seem to leave any corpses behind, but instead they become these transparent ghosts which then rise up. Is there a way to remove this effect so that the "heroes" will die just like normal units, falling on the ground and leaving a pile bones and flesh behind?

Here is a MUI system. You actually forgot to point how hero reviving goes in your map, so I decided to implement it for the standard reviving (like in the melee maps)
1. The system leaves corpse after the hero's death.
2. The corpse is dissapeared after the hero becomes alive.
 

Attachments

Here is a MUI system. You actually forgot to point how hero reviving goes in your map, so I decided to implement it for the standard reviving (like in the melee maps)
1. The system leaves corpse after the hero's death.
2. The corpse is dissapeared after the hero becomes alive.

Well that's awfully complicated... :D Also, in that the bodies don't disappear at all, when I wanted them to just leave behind corpses (so that, for example, a necromancer or death knight could raise their corpse), like any other normal unit. And they are not being revived at all, since they act like normal units: you just train more when they die.
 
Well that's awfully complicated... :D Also, in that the bodies don't disappear at all, when I wanted them to just leave behind corpses (so that, for example, a necromancer or death knight could raise their corpse), like any other normal unit. And they are not being revived at all, since they act like normal units: you just train more when they die.
Then you have 2 ways:
1. For each hero would be a normal unit with the same model (but characteristics are not). Then hero dies it is automatially replaced by the normal unit' corpse. (Harder)
2. Then hero dies a corpse of any unit type (for example the ghoul's one) occurs. Then it get raised the hero's corpse dissapeared. (Simpler)

[EDIT]
Here is a 3rd way: Create a dummy corpse that will be replaced by the dead hero (if it being reusrrected by the Resurrection spell), but I'm not sure how it would react on the Animate Dead spell.
 
Last edited:
I guess I'll just go with this:


Code:
Hero Death
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to True
    Actions
        Unit - Create a (Unit-type of (Dying unit)) corpse for Player 1 (Red) at (Position of (Dying unit))
        Unit - Make (Last created unit) face (Facing of (Dying unit)) over 0.00 seconds

Oddly enough, the heroes seem to have a normal corpse when added this way. Maybe all this is a glitch due to the new patch and just turning on "Can raise, does decay" should work. Now that I think of it, I don't remember having this problem ever before, even though I have made maps where all units are heroes back then.

Anyway, thanks for all your help. :)
 
You're leaking a location, which will build up as units die over time in your map. Also make sure you create the dead unit for the owner of the hero that died (above trigger makes it for Player 1 every time), and probably Unit - Remove the dying hero.

Oh yeah, that was just something I did quickly, so I forgot the owner. That unit removal, though, is a good point I didn't realize. Also, what do you mean by "leaking a location"?
 
Status
Not open for further replies.
Back
Top