Squishinator
New Member
- Reaction score
- 3
I know this is probably a really dumb question, but i have no knowledge of jass whatsoever and cant find a straight answer when i search.
call AddSpecialEffect("Effect", GetUnitX(someunit), GetUnitY(someunit))
call AddSpecialEffectTarget("Effect", someunit, "origin")
call DestroyEffect (AddSpecialEffect (modelFile, GetUnitX (whichUnit), GetUnitY (whichUnit))
//or
call DestroyEffect (AddSpecialEffectTarget (modelFile, whichUnit, attachmentPoint))
local effect sfx
...
set sfx = AddSpecialEffectTarget (modelFile, whichUnit, attachmentPoint)
//You -NEED- to use AddSpecialEffectTarget here, AddSpecialEffect isn't suitable, unlike above
call TriggerSleepAction (timeDelay)
call DestroyEffect (sfx)
Telling us what particular SFX(s) you want to use would be useful. If it's something like Fan of Knives, Warstomp, Thunderclap, Frost Nova's 'burst' effect and all those one-shot effects, you needeven this is kind of confusing to me. What i want to do is create special effect at position of sfxUnit and wont loop
call DestroyEffect (AddSpecialEffect (modelFile, GetUnitX (whichUnit), GetUnitY (whichUnit))
//or
call DestroyEffect (AddSpecialEffectTarget (modelFile, whichUnit, attachmentPoint))
call DestroyEffect (AddSpecialEffect ("Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl", GetUnitX (sfxUnit), GetUnitY (sfxUnit)))
"Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl"
//becomes
"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl"