Arma 3 Scripting

BIS_fnc_weaponDirectionRelative

  • Arma 3 v1.64

Function · Markdown · JSON · original wiki page

Description

Returns relative direction vector of given weapon for the given vehicle

Syntax

[vehicle, weapon, visual] call BIS_fnc_weaponDirectionRelative

Parameters:

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