Code: Select all
native AddSpecialEffect takes string modelName, real x, real y returns effect
You need to clean up that effect though. Depending on the model, you may be able to do this
Code: Select all
call DestroyEffect(AddSpecialEffect(somemodelname, x, y))
in your case this should work:
Code: Select all
call DestroyEffect(AddSpecialEffect("Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl", GetUnitX(GetEnumUnit()), GetUnitY(GetEnumUnit())))
You should probably make a local unit to store GetEnumUnit() in (remember to null it at the end of the function) so you only have to call it once. Depending on what else you are doing, you may also want to make the x and y local reals.