Arma 3 Scripting

BIS_fnc_weaponAddon

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Return addon from CfgPatches to which a given weapon class belongs to.

Important

This function is quite performance heavy, use only when absolutely necessary!

Syntax

classname call BIS_fnc_weaponAddon

Parameters:

Returns: String - addon's config name

Examples

Example 1

"arifle_MX_F" call BIS_fnc_weaponAddon; // returns "A3_Weapons_F_Rifles_MX"