waaaks!
Zinctified
- Reaction score
- 255
i have a trigger where if u uses shockwave, it creates a line of instant thunder claps, but it doesnt work, yes it creates the thunder clap, but not in a line, only on 1000 away from my unit...
JASS:
function shockwave takes nothing returns nothing
local unit cast = GetTriggerUnit()
local location loc1 = GetUnitLoc(cast)
local location loc2 = GetSpellTargetLoc()
local location pol
local real angle = AngleBetweenPoints(loc1,loc2)
local integer l = GetUnitAbilityLevel(cast, 039;A000039;)
local integer n = 0
loop
exitwhen n >= 10
set n = n + 1
set pol = PolarProjectionBJ(loc1, 100*n, angle)
call CasterCastAbilityLevelPointLoc(GetOwningPlayer(cast), 039;A001039;, l, "thunderclap", pol, true)
//function CasterCastAbilityLevelPointLoc takes player owner, integer abilid, integer level, string order, location loc, boolean instant returns unit
call RemoveLocation(pol)
endloop
call RemoveLocation(loc1)
call RemoveLocation(loc2)
set loc1 = null
set loc2 = null
set pol = null
set cast = null
endfunction