AddLightningLoc

Parameters
codeName string
where1 location
where2 location
return type
lightning
Source code
function AddLightningLoc takes string codeName, location where1, location where2 returns lightning
    set bj_lastCreatedLightning = AddLightningEx(codeName, true, GetLocationX(where1), GetLocationY(where1), GetLocationZ(where1), GetLocationX(where2), GetLocationY(where2), GetLocationZ(where2))
    return bj_lastCreatedLightning
endfunction
Source
Blizzard.j
wc3modding.com
AddLightningLoc