BIS fnc weaponComponents: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Formatting) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 8: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| < | | Returns array with classname of the parent weapon (without attachments), followed by classnames of all its attachments.<br> '''The returned classnames are all converted to lower cases.'''|= Description | ||
____________________________________________________________________________________________ | |||
|[classname] call [[BIS_fnc_weaponComponents]]|= Syntax | |||
|p1= classname: [[String]] - Classname of the parent weapon|= PARAMETER1 | |||
| [[Array]]|= RETURNVALUE | |||
|x1= <code>"arifle_mx_aco_pointer_f" call BIS_fnc_weaponComponents; //["arifle_mx_f","optic_aco","acc_pointer_ir"]</code>|= EXAMPLE1 | |||
</ | |x2= <code>"arifle_mx_gl_black_hamr_pointer_f" call BIS_fnc_weaponComponents; //["arifle_mx_gl_black_f","optic_hamr","acc_pointer_ir"]</code>|= EXAMPLE2 | ||
|x3= <code>"arifle_mx_black_f" call BIS_fnc_weaponComponents; //["arifle_mx_f"]</code>|= EXAMPLE3 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | |= SEEALSO | ||
| |= | | |= MPBEHAVIOUR | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} | ||
<h3 style= | <h3 style='display:none'>Notes</h3> | ||
<dl class= | <dl class='command_description'> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
Line 47: | Line 35: | ||
</dl> | </dl> | ||
<h3 style= | <h3 style='display:none'>Bottom Section</h3> | ||
[[Category:Function Group: Misc|{{uc: | [[Category:Function Group: Misc|{{uc:endMissionServer}}]] | ||
[[Category:Functions|{{uc: | [[Category:Functions|{{uc:endMissionServer}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc: | [[Category:{{Name|arma3}}: Functions|{{uc:endMissionServer}}]] |
Revision as of 23:50, 2 July 2016
Description
- Description:
- Returns array with classname of the parent weapon (without attachments), followed by classnames of all its attachments.
The returned classnames are all converted to lower cases. - Execution:
- call
- Groups:
- Uncategorised
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