BIS_fnc_dirTo does not return a 0 - 360 value.
This line in BIS_fnc_dirTo is incorrect
Code:
_ret = ((_pos2 select 0) - (_pos1 select 0)) atan2 ((_pos2 select 1) - (_pos1 select 1));
_ret = _ret % 360; //ensure return is 0-360
atan2 returns -180 to 180 , the mod 360 of these values is still -180 to 180 not 0 - 360.