BIS fnc weaponAddon: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Weapons |GROUP1= | |gr1 = Weapons |GROUP1= | ||
| Return addon from CfgPatches to which a given weapon class belongs to. | | Return addon from CfgPatches to which a given weapon class belongs to. | ||
{{Important | This function is quite performance heavy, use only when absolutely necessary!}} |DESCRIPTION= | {{Important | This function is quite performance heavy, use only when absolutely necessary!}} |DESCRIPTION= | ||
| classname [[call]] [[BIS_fnc_weaponAddon]] |SYNTAX= | | classname [[call]] [[BIS_fnc_weaponAddon]] |SYNTAX= | ||
Line 18: | Line 15: | ||
| [[String]] - Config name of the addon |RETURNVALUE= | | [[String]] - Config name of the addon |RETURNVALUE= | ||
|x1= <code>"arifle_MX_F" [[call]] [[BIS_fnc_weaponAddon]]; {{cc|returns "A3_Weapons_F_Rifles_MX"}}</code> |EXAMPLE1= | |x1= <code>"arifle_MX_F" [[call]] [[BIS_fnc_weaponAddon]]; {{cc|returns "A3_Weapons_F_Rifles_MX"}}</code> |EXAMPLE1= | ||
||SEEALSO= | ||SEEALSO= |
Revision as of 00:06, 17 January 2021
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 - 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