BIS fnc weaponAddon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(properly formatted the page)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Return addon from CfgPatches to which a given weapon class belongs to.
 
{{note|This function is quite performance heavy, use only when absolutely necessary!}}
Description:
|= Description
Return addon from CfgPatches to which a given weapon class belongs to
Parameter(s):
0: STRING
Returns:
STRING - addon class
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_weaponAddon]]; --> |= Syntax
| Classname [[call]] [[BIS_fnc_weaponAddon]];


|p1= |= Parameter 1
|p1= Classname [[String]] - Weapon's classname |= Parameter 1


| |= Return value
| [[String]] - Config name of the addon |= return
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>"arifle_MX_F" call BIS_fnc_weaponAddon;//Returns "A3_Weapons_F_Rifles_MX"</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
||= See also


}}
}}
Line 45: Line 35:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Configs|{{uc:weaponAddon}}]]
[[Category:Function Group: Ambient|{{uc:ambientAnimCombat}}]]
[[Category:Functions|{{uc:weaponAddon}}]]
[[Category:Functions|{{uc:ambientAnimCombat}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:weaponAddon}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:ambientAnimCombat}}]]
 
{{Function|= Comments

Revision as of 10:29, 30 July 2016


Hover & click on the images for description

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

Notes

Bottom Section

{{Function|= Comments