Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
give the buff a sound
someone told me that if you wait x seconds
where x is distance between unit and caster / missle speed
It will be exactly what you are looking for for your wait time.
But all those are good ways that I didn't think about thank you all for expanding my knowledge
someone told me that if you wait x seconds
where x is distance between unit and caster / missle speed
It will be exactly what you are looking for for your wait time.
But all those are good ways that I didn't think about thank you all for expanding my knowledge
function SpellMove takes nothing returns nothing
local trigger trg = GetTriggeringTrigger()
local unit u = GetHandleUnit(trg,"u")
local unit t = GetHandleUnit(trg,"t")
local unit e = GetHandleUnit(trg,"e")
local unit f = null
local location l = GetUnitLoc(e)
local location m = GetUnitLoc(t)
local location n = PolarProjectionBJ(l,---(Missile Speed * 0.02)---,AngleBetweenPoints(l,m))
local group k = GetUnitsInRangeOfLocAll(---(Missile Speed * 0.02)---, l)
call SetUnitPositionLocFacingBJ(e,n,AngleBetweenPoints(l,m))
if IsUnitInGroup(t, k) then
----(Insert Spell Effect here)-----
call RemoveLocation(l)
call RemoveLocation(m)
call RemoveLocation(n)
call GroupClear(k)
call DestroyGroup(k)
call DisableTrigger(trg)
call FlushHandleLocals(trg)
call DestroyTrigger(trg)
set u = null
set t = null
set e = null
set k = null
set l = null
set m = null
set n = null
set f = null
set trg = null
endif
call RemoveLocation(l)
call RemoveLocation(m)
call RemoveLocation(n)
call GroupClear(k)
call DestroyGroup(k)
set u = null
set t = null
set l = null
set m = null
set n = null
set k = null
set e = null
set f = null
set trg = null
endfunction
function Trig_SpellName_Actions takes nothing returns nothing
local unit u = GetSpellAbilityUnit()
local unit t = GetSpellTargetUnit()
local location l = GetUnitLoc(u)
local unit e = CreateUnit(GetOwningPlayer(u),---(Dummy Caster)---,GetLocationX(l),GetLocationY(l),0.00)
local trigger trg = CreateTrigger()
call SetHandleHandle(trg,"u",u)
call SetHandleHandle(trg,"t",t)
call SetHandleHandle(trg,"e",e)
call TriggerRegisterTimerEventPeriodic(trg,0.02)
call TriggerAddAction(trg,function SpellMove)
call RemoveLocation(l)
set u = null
set t = null
set l = null
set e = null
set trg = null
endfunction
then someone is lying becouse the target could move after the spell had been castedsomeone told me that if you wait x seconds
where x is distance between unit and caster / missle speed
It will be exactly what you are looking for for your wait time.
But all those are good ways that I didn't think about thank you all for expanding my knowledge
Yo welcome, braddah. Rememba to repz who done help yo, yah?
Thank you guys for the help but... bountygiver can i get that in GUI cuz i don't understand JASS rly....? And doom_sheep it doesn't work with giving the buff a sound because u can't give imported sounds to the buff... That is the problem
