{"name":"BIS_fnc_weaponDirectionRelative","title":"BIS fnc weaponDirectionRelative","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_weaponDirectionRelative","revid":339146,"updated":"2023-04-26T10:55:04Z","groups":["Weapons"],"status":"ok","games":{"arma3":"1.64"},"since":"arma3 1.64","arma3_since":"1.64","description":"Returns relative direction vector of given weapon for the given vehicle","syntaxes":[{"syntax":"[vehicle, weapon, visual] call BIS_fnc_weaponDirectionRelative","params":[{"name":"vehicle","type":"Object","description":"vehicle","type_expr":"Object"},{"name":"weapon","type":"String","description":"vehicle weapon","type_expr":"String"},{"name":"visual","type":"Boolean","optional":true,"default":"true","description":"if true - result is in render scope, false - simulation scope","type_expr":"Boolean","text":"visual: Boolean - (Optional, default true) if true - result is in render scope, false - simulation scope"}],"returns":{"type":"Array format Vector3D","types":["Array","Vector3D"],"type_expr":"Vector3D"}}],"examples":[{"code":["private _relweapondir = [tank, \"cannon_105mm\"] call BIS_fnc_weaponDirectionRelative;"]}],"see_also":["BIS_fnc_attachToRelative","BIS_fnc_vectorDirAndUpRelative","weaponDirection"]}