BIS fnc compatibleItems: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|(\[\[[a-zA-Z]+\]\].+) * \|x1=" to " |r1= $1 |x1=")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
|version1= 1.24


|1.24
|gr1= Inventory


|gr1= Inventory
|descr= Return all compatible weapon attachments.


| Return all compatible weapon attachments.
|s1= weapon call [[BIS_fnc_compatibleItems]]


|  weapon call [[BIS_fnc_compatibleItems]]
|p1= weapon: [[String]] - Weapon class
|p1= weapon: [[String]] - Weapon class


|r1= [[Array]] - of [[String|strings]]
|r1= [[Array]] of [[String|strings]]


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

Revision as of 18:20, 10 June 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