Skip to content

Commit

Permalink
fix headDir 1.92 (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 committed Apr 30, 2019
1 parent a0aea3d commit bda8d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/common/fnc_headDir.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if (_unit != call CBA_fnc_currentUnit) then {
} else {
private _camPos = AGLToASL positionCameraToWorld [0, 0, 0];
_isExternalCam = (_camPos vectorDistance getPosASL _unit) > 2;
private _viewPos = AGLToASL positionCameraToWorld [0, 0, 99999999];
private _viewPos = AGLToASL positionCameraToWorld [0, 0, 10000];
private _vector = _viewPos vectorDiff _camPos;
_vector = _vector vectorMultiply (1 / vectorMagnitude _vector);
_azimuth = (_vector select 0) atan2 (_vector select 1);
Expand Down

0 comments on commit bda8d8d

Please sign in to comment.