---
name: "hmd"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "1.12"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/hmd
revid: 352035
updated: 2024-02-01T23:24:28Z
---

# hmd

*Command · Unit Inventory · Arma 3 v1.12*

Locality: arguments **global**

## Description

Returns class name of currently used Head Mounted Display. Returns an empty string if the slot is empty.

> [!NOTE]
> If [hmd](../commands/hmd.md) returns "" this doesn't immediately mean unit has no [hmd](../commands/hmd.md), some items like Special Helmet ("H_HelmetO_ViperSP_ghex_F") can have built-in [hmd](../commands/hmd.md) so you might want to check the type of [headgear](../commands/headgear.md) as well

## Syntax

```sqf
hmd unit
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
_nvgs = hmd player; //NVGoggles
```

## See also

[headgear](../commands/headgear.md) · [goggles](../commands/goggles.md) · [binocular](../commands/binocular.md)

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