Hello guys, here's the deal:
I want this special effect to fire 20 times, 1 time every 0.15/sec when the spell is casted.
I dont know much about special effects but i think this should have worked.
Can anyone fix this to me ? ps: I'm trying to do it without using another trigger. Thanks and sorry for my english.
JASS:
//======================================SPECIAL EFFECT==================================
private function Effect takes nothing returns nothing
local location spellLoc = GetSpellTargetLoc()
local location effectPos
local integer effectCount = 0
set effectPos = PolarProjectionBJ(spellLoc, GetRandomReal(0.00, 150.00), GetRandomDirectionDeg())
loop
exitwhen effectCount == 20
call DestroyEffect(AddSpecialEffectLoc(DAMAGE_EFFECT, effectPos))
set effectCount = effectCount + 1
call TriggerSleepAction(1.00)
endloop
call RemoveLocation(spellLoc)
call RemoveLocation(effectPos)
set spellLoc = null
set effectPos = null
endfunction
I dont know much about special effects but i think this should have worked.
Can anyone fix this to me ? ps: I'm trying to do it without using another trigger. Thanks and sorry for my english.