---
name: "getCorpse"
type: command
status: ok
groups: ["Unit Inventory", "Object Manipulation"]
arma3_since: "2.12"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getCorpse
revid: 352960
updated: 2024-03-07T14:49:08Z
---

# getCorpse

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

## Description

Returns the corpse associated with given weaponholder. When unit is killed and had a weapon, the weapon is placed inside "WeaponHolderSimulated" and dropped together with the unit. This command returns the dead body associated with this weaponholder.

## Syntax

```sqf
getCorpse weaponholder
```

**Parameters:**

- `weaponholder`: [Object](../topics/Object.md) - weaponholder dropped by the dead unit

**Returns:** [Object](../topics/Object.md) - dead unit

## Examples

### Example 1

```sqf
systemChat str getCorpse cursorObject;
```

## See also

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

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