BIS fnc compatibleItems: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\|= " to " ")
Line 15: Line 15:
|[[Array]] - of [[String|strings]] |RETURNVALUE=
|[[Array]] - of [[String|strings]] |RETURNVALUE=


|x1= <code>([[currentWeapon]] [[player]]) [[call]] [[BIS_fnc_compatibleItems]];</code> |=
|x1= <code>([[currentWeapon]] [[player]]) [[call]] [[BIS_fnc_compatibleItems]];</code>


|[[currentWeapon]],[[BIS_fnc_limitWeaponItems]], [[BIS_fnc_baseWeapon]] |SEEALSO=
|[[currentWeapon]],[[BIS_fnc_limitWeaponItems]], [[BIS_fnc_baseWeapon]] |SEEALSO=

Revision as of 22:11, 17 January 2021

Hover & click on the images for description

Description

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

Syntax

Syntax:
weapon call BIS_fnc_compatibleItems
Parameters:
weapon: String - Weapon class
Return Value:
Array - of strings

Examples

Example 1:
(currentWeapon player) call BIS_fnc_compatibleItems;

Additional Information

See also:
currentWeaponBIS_fnc_limitWeaponItemsBIS_fnc_baseWeapon

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