Arma 3 Scripting

Function in Weapons

BIS_fnc_baseWeapon

Also available as Markdown and JSON, or read the original wiki page.

Description

Determines base weapon class, with no attachments.

Syntax

[weaponName] call BIS_fnc_baseWeapon

Parameters:

Returns: String - weapon classname that features no attachments.

Examples

Example 1

["arifle_Mk20_MRCO_pointer_F"] call BIS_fnc_baseWeapon; // Returns "arifle_Mk20_F"

See also

BIS_fnc_weaponAddon · BIS_fnc_addWeapon