DestroyEffect
- Parameters
-
whichEffect effect
- comment
Destroys the effect. If the model has a death animation, plays it including the sound (temporarily leaving a blood pool), otherwise finishes current animation.
Example (Lua):
DestroyEffect(AddSpecialEffect([[units\human\sorceress\sorceress.mdx]], 0,0)) DestroyEffect(AddSpecialEffect([[doodads\lordaeronsummer\props\cage\cage.mdx]], 128,0))
- note
v1.36.2: Tree models are unusable. Found under "doodads/terrain/" in game resources, if spawned, they'll appear without a texture (apparently the texture path isn't set inside the model).
- patch
1.00
- Source
- common.j
- return type
nothing
- Source code
native DestroyEffect takes effect whichEffect returns nothing