---
name: "removeHeadgear"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/removeHeadgear
revid: 340893
updated: 2023-05-13T21:57:45Z
---

# removeHeadgear

*Command · Unit Inventory · Arma 3 v0.50*

Locality: arguments **global** · effect **global**

## Description

Removes headgear from a unit. If unit has no headgear command quietly fails.

## Syntax

```sqf
removeHeadgear unit
```

**Parameters:**

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

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
removeHeadgear player;
```

## See also

[headgear](../commands/headgear.md) · [addHeadgear](../commands/addHeadgear.md)

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