BIS fnc weaponAddon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Text replacement - "\|s([0-9])= ([^ ]+) (\[\[call\]\]) ([^ ]+) " to "|s$1= $2 call $4 ")
Line 9: Line 9:
{{Feature | important | This function is quite performance heavy, use only when absolutely necessary!}}
{{Feature | important | This function is quite performance heavy, use only when absolutely necessary!}}


|s1= classname [[call]] [[BIS_fnc_weaponAddon]]
|s1= classname call [[BIS_fnc_weaponAddon]]


|p1= classname [[String]] - weapon's classname
|p1= classname [[String]] - weapon's classname

Revision as of 19:18, 20 June 2021

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:
Weapons

Syntax

Syntax:
classname call BIS_fnc_weaponAddon
Parameters:
classname String - weapon's classname
Return Value:
String - addon's config name

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