CBA_fnc_turretDir

Description

Reports azimuth and inclination of a vehicles turret.

Parameters

_vehicleThe Vehicle.  <OBJECT>
_turretA Turret.  (e.g.  [0] for “main turret”) ARRAY
_relativeToModelfalse (default): report directions relative to world, true: relative to model <BOOLEAN>

Returns

Azimuth + Inclination ARRAY 0: _azimuth (0-360 degree) <NUMBER> 1: _inclination (90 to -90 degree, 0: forward) <NUMBER>

Examples

[vehicle player, [0], true] call CBA_fnc_turretDir

Author

commy2

Array to read from [Array]
Close