Warcraft III resources & community, 2003–2006 · archived

GetMidpoint

not rated
Submitted by AltSubmitterCalculations0 downloads
Takes 2 locations and returns midpoint.

Source

function GetMidpoint takes location one, location two returns location
    return Location(((GetLocationX(one) + GetLocationX(two))/2),((GetLocationY(one) + GetLocationY(two))/2))
endfunction

Comments

0

No comments.