The search keyword must be a single word (no spaces).

Function MeleeGetProjectedLoc

Line
8600
Location
blizzard.j
Constant?
no
Type
function
Arguments
location src, location targ, real distance, real deltaAngle
Returns
location
8600
function MeleeGetProjectedLoc takes location src, location targ, real distance, real deltaAngle returns location
8601
    local real srcX = GetLocationX(src)
8602
    local real srcY = GetLocationY(src)
8603
    local real direction = Atan2(GetLocationY(targ) - srcY, GetLocationX(targ) - srcX) + deltaAngle
8604
    return Location(srcX + distance * Cos(direction), srcY + distance * Sin(direction))
8605
endfunction