• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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