Arma 3 Scripting

Command in Unit Inventory

secondaryWeapon

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

Description

Returns the name of a unit's secondary weapon (launcher). To detect the weapon which is currently being used by the unit use currentWeapon.

Syntax

secondaryWeapon unit

Parameters:

Returns: String - class name of the secondary weapon or "" if none available

Examples

Example 1

private _secondaryWeapon = secondaryWeapon player;

Example 2

hint secondaryWeapon player; // "launch_NLAW_F"

See also

secondaryWeaponMagazine · secondaryWeaponItems · addSecondaryWeaponItem · primaryWeapon · handgunWeapon · currentWeapon · weapons