BIS fnc weaponAddon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (template:command argument fix) |
||
Line 10: | Line 10: | ||
| Return addon from CfgPatches to which a given weapon class belongs to. | | Return addon from CfgPatches to which a given weapon class belongs to. | ||
{{note|This function is quite performance heavy, use only when absolutely necessary!}} | {{note|This function is quite performance heavy, use only when absolutely necessary!}} | ||
|= | |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Classname [[call]] [[BIS_fnc_weaponAddon]]; | | Classname [[call]] [[BIS_fnc_weaponAddon]]; | ||
|p1= Classname [[String]] - Weapon's classname |= | |p1= Classname [[String]] - Weapon's classname |PARAMETER1= | ||
| [[String]] - Config name of the addon |= return | | [[String]] - Config name of the addon |= return | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>"arifle_MX_F" call BIS_fnc_weaponAddon;//Returns "A3_Weapons_F_Rifles_MX"</code> |= | |x1= <code>"arifle_MX_F" call BIS_fnc_weaponAddon;//Returns "A3_Weapons_F_Rifles_MX"</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
||= | ||SEEALSO= | ||
}} | }} |
Revision as of 14:34, 7 April 2019
Description
- Description:
- Return addon from CfgPatches to which a given weapon class belongs to. Template:note
- Execution:
- call
- Groups:
- Uncategorised
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