BIS fnc weaponAddon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Change note to important template)
m (Text replacement - "|Game version=" to "|Game version= |gr1 = Ambient |GROUP1=")
Line 5: Line 5:


|1.00|Game version=
|1.00|Game version=
|gr1 = Ambient |GROUP1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 11:50, 10 October 2020

Hover & click on the images for description

Description

Description:
Return addon from CfgPatches to which a given weapon class belongs to.
This function is quite performance heavy, use only when absolutely necessary!
Execution:
call
Groups:
Ambient

Syntax

Syntax:
classname call BIS_fnc_weaponAddon
Parameters:
classname String - Weapon's classname
Return Value:
String - Config name of the addon

Examples

Example 1:
"arifle_MX_F" call BIS_fnc_weaponAddon; // returns "A3_Weapons_F_Rifles_MX"

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

Notes

Bottom Section