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

[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