Reports azimuth and inclination of a units head or weapon direction.
_vehicle | The Unit or Vehicle. <OBJECT> |
_weapon | Weapon. (optional, use the weapons direction instead) STRING |
Azimuth + Inclination ARRAY 0: _azimuth (0-360 degree, 0/360: North, 90: East, 180: South, 270: West) <NUMBER> 1: _inclination (90 to -90 degree, 0: horizontally forward) <NUMBER>
player call CBA_fnc_viewDir; [player, currentWeapon player] call CBA_fnc_viewDir; [vehicle player, "M2HB"] call CBA_fnc_viewDir;
commy2