BIS fnc weaponAddon: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\{\{cc\|([^{}]+)\}\} *<\/code>" to "<code>$1// $2</code>") |
||
Line 15: | Line 15: | ||
|r1= [[String]] - addon's config name | |r1= [[String]] - addon's config name | ||
|x1= <code>"arifle_MX_F" call BIS_fnc_weaponAddon; | |x1= <code>"arifle_MX_F" call BIS_fnc_weaponAddon; // returns "A3_Weapons_F_Rifles_MX"</code> | ||
|seealso= | |seealso= | ||
}} | }} |
Revision as of 22:23, 12 July 2022
Description
- Description:
- Return addon from CfgPatches to which a given weapon class belongs to.
- 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