Arma 3 Scripting

BIS_fnc_weaponComponents

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Returns array with classname of the parent weapon (without attachments), followed by classnames of all its attachments.

Important

The returned classnames are all converted to lower cases.

Syntax

[classname] call BIS_fnc_weaponComponents

Parameters:

Returns: Array

Examples

Example 1

"arifle_mx_aco_pointer_f" call BIS_fnc_weaponComponents; // ["arifle_mx_f","optic_aco","acc_pointer_ir"]

Example 2

"arifle_mx_gl_black_hamr_pointer_f" call BIS_fnc_weaponComponents; // ["arifle_mx_gl_black_f","optic_hamr","acc_pointer_ir"]

Example 3

"arifle_mx_black_f" call BIS_fnc_weaponComponents; // ["arifle_mx_f"]