Polar Project 2K5
not ratedBasically 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.
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)
endfunctionNo comments.