BIS fnc weaponComponents: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "| arma3|1.00|" to "| arma3 |1.00  |")  | 
				Lou Montana (talk | contribs)  m (Some wiki formatting)  | 
				||
| Line 1: | Line 1: | ||
{{RV|type=function  | {{RV|type=function  | ||
|  | |game1= arma3  | ||
|version1= 1.00  | |||
|p1= classname: [[String]] - Classname of the parent weapon| [[Array]]  | |gr1= Weapons  | ||
|x1= <code>"arifle_mx_aco_pointer_f" call BIS_fnc_weaponComponents;   | |||
|x2= <code>"arifle_mx_gl_black_hamr_pointer_f" call BIS_fnc_weaponComponents;   | |descr= Returns array with classname of the parent weapon (without attachments), followed by classnames of all its attachments.<br>  | ||
|x3= <code>"arifle_mx_black_f" call BIS_fnc_weaponComponents;   | {{Feature | important | The returned classnames are all converted to lower cases.}}  | ||
|s1= [classname] call [[BIS_fnc_weaponComponents]]  | |||
|p1= classname: [[String]] - Classname of the parent weapon  | |||
|r1= [[Array]]  | |||
|x1= <code>"arifle_mx_aco_pointer_f" call BIS_fnc_weaponComponents; {{cc|["arifle_mx_f","optic_aco","acc_pointer_ir"]}}</code>  | |||
|x2= <code>"arifle_mx_gl_black_hamr_pointer_f" call BIS_fnc_weaponComponents; {{cc|["arifle_mx_gl_black_f","optic_hamr","acc_pointer_ir"]}}</code>  | |||
|x3= <code>"arifle_mx_black_f" call BIS_fnc_weaponComponents; {{cc|["arifle_mx_f"]}}</code>  | |||
|seealso=  | |||
}}  | |||
Revision as of 04:43, 13 June 2021
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:
 "arifle_mx_black_f" call BIS_fnc_weaponComponents; // ["arifle_mx_f"]
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