BIS_fnc_weaponDirectionRelative

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.66
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.66

Description

Description:
Returns relative direction vector of given weapon for the given vehicle

Syntax

Syntax:
[vehicle, weapon visual] call BIS_fnc_weaponDirectionRelative
Parameters:
vehicle: Object - vehicle
weapon: String - vehicle weapon
visual (Optional): Boolean - if true - result is in render scope, false - simulation scope. Default: true
Return Value:
Array in format [x,y,z]

Examples

Example 1:
_relweapondir = [tank, "cannon_105mm"] call BIS_fnc_weaponDirectionRelative;

Additional Information

Execution:
call
Multiplayer:
-
See also:
BIS_fnc_attachToRelativeBIS_fnc_vectorDirAndUpRelativeweaponDirection

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To


Bottom Section