CBA_fnc_viewDir

Description

Reports azimuth and inclination of a units head or weapon direction.

Parameters

_vehicleThe Unit or Vehicle.  <OBJECT>
_weaponWeapon.  (optional, use the weapons direction instead) STRING

Returns

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>

Examples

player call CBA_fnc_viewDir;
[player, currentWeapon player] call CBA_fnc_viewDir;
[vehicle player, "M2HB"] call CBA_fnc_viewDir;

Author

commy2

string used by format
Array to read from [Array]
Close