Arma 3 Scripting

Command in Unit Inventory

hmd

Also available as Markdown and JSON, or read the original wiki page.

Description

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

Note

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

Syntax

hmd unit

Parameters:

Returns: String

Examples

Example 1

_nvgs = hmd player; //NVGoggles

See also

headgear · goggles · binocular