AddLightningLoc

Parameters
codeNamestring
where1location
where2location
comment
patch

1.17a

Source
Blizzard.j (raise an issue to discuss on Github or submit a PR)
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