BIS fnc weaponAddon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|")
Line 1: Line 1:
{{RV|type=function
{{RV|type=function
| arma3|1.00|gr1 = Weapons| Return addon from CfgPatches to which a given weapon class belongs to.
| arma3|1.00|gr1 = Weapons| Return addon from CfgPatches to which a given weapon class belongs to.
{{Important | This function is quite performance heavy, use only when absolutely necessary!}}| classname [[call]] [[BIS_fnc_weaponAddon]]|p1= classname [[String]] - Weapon's classname| [[String]] - Config name of the addon|x1= <code>"arifle_MX_F" [[call]] [[BIS_fnc_weaponAddon]]; {{cc|returns "A3_Weapons_F_Rifles_MX"}}</code>}}
{{Feature | important | This function is quite performance heavy, use only when absolutely necessary!}}| classname [[call]] [[BIS_fnc_weaponAddon]]|p1= classname [[String]] - Weapon's classname| [[String]] - Config name of the addon|x1= <code>"arifle_MX_F" [[call]] [[BIS_fnc_weaponAddon]]; {{cc|returns "A3_Weapons_F_Rifles_MX"}}</code>}}






[[Category:{{Name|arma3}}: Functions|{{uc:ambientAnimCombat}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:ambientAnimCombat}}]]

Revision as of 02:09, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Weapons

Syntax

Syntax:
Syntax needed
Parameters:
classname String - Weapon's classname
Return Value:
Return value needed

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