BIS fnc compatibleItems: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (pf)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Return all compatible weapon attachments.|= Description
Author: Karel Moricky


Description:
____________________________________________________________________________________________
Return all compatible weapon attachments
Parameter(s):
0: STRING - weapon class
Returns:
ARRAY of STRINGs
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_compatibleItems]])''</small> |= Description
|  weapon call [[BIS_fnc_compatibleItems]] |= Syntax
____________________________________________________________________________________________
|p1= weapon: [[String]] - Weapon class |= Parameter 1
____________________________________________________________________________________________
____________________________________________________________________________________________


|[weapon] [[call]] [[BIS_fnc_compatibleItems]] |= Syntax
| |[[Array]] - of [[String|strings]] |= Return value
____________________________________________________________________________________________


|p1= weapon: [[String]] - weapon class |= Parameter 1
|x1= <code>([[currentWeapon]] [[player]]) [[call]] [[BIS_fnc_compatibleItems]];</code> |=
 
____________________________________________________________________________________________
|[[Array]] |= Return value


|[[currentWeapon]],[[BIS_fnc_limitWeaponItems]], [[BIS_fnc_baseWeapon]] |= See also
}}
}}



Revision as of 00:37, 2 July 2018

Hover & click on the images for description

Description

Description:
Return all compatible weapon attachments.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
weapon call BIS_fnc_compatibleItems
Parameters:
weapon: String - Weapon class
Return Value:
Return value needed

Examples

Example 1:
(currentWeapon player) call BIS_fnc_compatibleItems;

Additional Information

See also:
Array - of strings

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

Bottom Section