BIS fnc weaponComponents: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\{\{cc\|([^{}]+)\}\} *<\/code>" to "<code>$1$2</code>")  | 
				Lou Montana (talk | contribs)  m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")  | 
				||
| (3 intermediate revisions by the same user not shown) | |||
| Line 11: | Line 11: | ||
|s1= [classname] call [[BIS_fnc_weaponComponents]]  | |s1= [classname] call [[BIS_fnc_weaponComponents]]  | ||
|p1= classname: [[String]] -   | |p1= classname: [[String]] - classname of the parent weapon  | ||
|r1= [[Array]]  | |r1= [[Array]]  | ||
|x1= <  | |x1= <sqf>"arifle_mx_aco_pointer_f" call BIS_fnc_weaponComponents; // ["arifle_mx_f","optic_aco","acc_pointer_ir"]</sqf>  | ||
|x2= <  | |x2= <sqf>"arifle_mx_gl_black_hamr_pointer_f" call BIS_fnc_weaponComponents; // ["arifle_mx_gl_black_f","optic_hamr","acc_pointer_ir"]</sqf>  | ||
|x3= <  | |x3= <sqf>"arifle_mx_black_f" call BIS_fnc_weaponComponents; // ["arifle_mx_f"]</sqf>  | ||
|seealso=  | |seealso=  | ||
}}  | }}  | ||
Latest revision as of 13:59, 8 November 2023
Description
- Description:
 - Returns array with classname of the parent weapon (without attachments), followed by classnames of all its attachments.
 - Execution:
 - call
 - Groups:
 - Weapons
 
Syntax
- Syntax:
 - [classname] call BIS_fnc_weaponComponents
 - Parameters:
 - classname: String - classname of the parent weapon
 - Return Value:
 - 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:
 
Additional Information
- See also:
 - See also needed
 
Notes
- 
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note