Warcraft III resources & community, 2003–2006 · archived

Polar Project 2K5

not rated
Submitted by EdwardSwolenToeCalculations0 downloads
Basically a mod off the normal polarprojectionBJ, but takes a unit instead of a location and returns a real instead of a location and takes a True/False boolean for the X or the Y instead of having 2 functions.

Source

function PolarProject2k5 takes unit who, real dist, real angle, boolean XorY returns real
    if XorY == true then
    return GetUnitX(who)+dist*Cos(angle*bj_DEGTORAD)
    endif
    return GetUnitY(who)+dist*Sin(angle*bj_DEGTORAD)
endfunction

Comments

0

No comments.