BIS fnc weaponAddon: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "| arma3|1.00|" to "| arma3 |1.00 |") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
|gr1= Weapons| Return addon from CfgPatches to which a given weapon class belongs to. | |game1= arma3 | ||
{{Feature | important | This function is quite performance heavy, use only when absolutely necessary!}}| classname [[call]] [[BIS_fnc_weaponAddon]]|p1= classname [[String]] - | |version1= 1.00 | ||
|gr1= Weapons | |||
|descr= Return addon from CfgPatches to which a given weapon class belongs to. | |||
{{Feature | important | This function is quite performance heavy, use only when absolutely necessary!}} | |||
|s1= classname [[call]] [[BIS_fnc_weaponAddon]] | |||
|p1= classname [[String]] - weapon's classname | |||
|r1= [[String]] - addon's config name | |||
|x1= <code>"arifle_MX_F" [[call]] [[BIS_fnc_weaponAddon]]; {{cc|returns "A3_Weapons_F_Rifles_MX"}}</code> | |||
|seealso= | |||
}} |
Revision as of 05:01, 13 June 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 - 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