---
name: "secondaryWeapon"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/secondaryWeapon
revid: 348320
updated: 2023-11-08T12:59:40Z
---

# secondaryWeapon

*Command · Unit Inventory · Arma 3 v0.50 · introduced in Operation Flashpoint v1.75*

## 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](../commands/currentWeapon.md).

## Syntax

```sqf
secondaryWeapon unit
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)

**Returns:** [String](../topics/String.md) - class name of the secondary weapon or `""` if none available

## Examples

### Example 1

```sqf
private _secondaryWeapon = secondaryWeapon player;
```

### Example 2

```sqf
hint secondaryWeapon player; // "launch_NLAW_F"
```

## See also

[secondaryWeaponMagazine](../commands/secondaryWeaponMagazine.md) · [secondaryWeaponItems](../commands/secondaryWeaponItems.md) · [addSecondaryWeaponItem](../commands/addSecondaryWeaponItem.md) · [primaryWeapon](../commands/primaryWeapon.md) · [handgunWeapon](../commands/handgunWeapon.md) · [currentWeapon](../commands/currentWeapon.md) · [weapons](../commands/weapons.md)

<sub>Source: [BI Community Wiki — secondaryWeapon](https://community.bistudio.com/wiki/secondaryWeapon) (revision 348320).</sub>
