AddSpecialEffect

From WarCraft3

Jump to: navigation, search

Template:common.j article series


common.j

native AddSpecialEffect             takes string modelName, real x, real y returns effect
Confused? Jass help forum!

Creates a special effect of the model in the string path "modelName" at the coordinates ( x , y ). Upon adding the effect, it will play its "birth" animation, and its "stand" animation afterward. If it has no animations, then it will show up how it would by default when viewing the model. The effect will last indefinitely until destroyed, regardless of whether or not it still appears. To destroy an effect, see DestroyEffect.

Note: The model path can refer to any model in the .MPQ or a custom imported model. When typing the path into a string, you must use double-backslashes "\\" instead of single-backslashes for the effect to show up. For example:

    call AddSpecialEffect("Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl",0,0)
Personal tools