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

[General] Is "Heal" model leak ?

Status
Not open for further replies.
Level 8
Joined
Sep 7, 2008
Messages
320
I know must to remove effect after create it.
But this model got problem, if you want it run animation, you mustnt destroy effect else it wont show any things.

So should i delay removing this effect or keep it ?
 
Level 4
Joined
Jul 26, 2016
Messages
88
If an effect is destroyd it will play it's death animation before being removed.

Not always. Some effects won't do that.

Make a dummy unit with the effect as a model, create the unit and order it to play the desired animation, and add a timer to that dummy unit.
 
Level 4
Joined
Jul 26, 2016
Messages
88
You mean effects that don't have a death animation?

When the dummy unit dies, the effect will also play it's animation, by the way.

DestroyEffect(AddSpecialEffect(...)) won't always finish playing the effect's animation, which is what his question was about

(Or create, destroy for GUI users)
 
Level 4
Joined
Jul 26, 2016
Messages
88
@IcemanBo These won't show at all when immediately destroyed:
"Abilities\\Spells\\Human\\Heal\\HealTarget.mdl"
"Abilities\\Spells\\Orc\\Disenchant\\DisenchantSpecialArt.mdl"
"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl"
 
Status
Not open for further replies.
Top