---
name: "getCorpseWeaponholders"
type: command
status: ok
groups: ["Unit Inventory", "Object Manipulation"]
arma3_since: "2.18"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getCorpseWeaponholders
revid: 369742
updated: 2024-10-08T15:06:00Z
---

# getCorpseWeaponholders

*Command · Unit Inventory, Object Manipulation · Arma 3 v2.18*

## Description

Returns primary and secondary weapon holders of a dead unit. If a unit had weapons at the moment of death, primary weapon is dropped into primary weaponholder and secondary weapon is dropped into secondary.

## Syntax

```sqf
getCorpseWeaponholders corpse
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) of [Object](../topics/Object.md)s in format [primaryWeaponHolder, secondaryWeaponHolder]

## Examples

### Example 1

```sqf
systemChat str getCorpseWeaponholders cursorObject;
```

## See also

[getCorpse](../commands/getCorpse.md) · [nearSupplies](../commands/nearSupplies.md) · [allDeadMen](../commands/allDeadMen.md)

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