Description
Returns relative direction vector of given weapon for the given vehicle
Syntax
[vehicle, weapon, visual] call BIS_fnc_weaponDirectionRelative
Parameters:
vehicle: Object - vehicleweapon: String - vehicle weaponvisual: Boolean - (Optional, default true) if true - result is in render scope, false - simulation scope
Returns: Array format Vector3D
Examples
Example 1
private _relweapondir = [tank, "cannon_105mm"] call BIS_fnc_weaponDirectionRelative;
See also
BIS_fnc_attachToRelative · BIS_fnc_vectorDirAndUpRelative · weaponDirection