{"name":"hmd","operator":null,"title":"hmd","type":"command","url":"https://community.bistudio.com/wiki/hmd","revid":352035,"updated":"2024-02-01T23:24:28Z","groups":["Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.12"}],"since":{"game":"arma3","name":"Arma 3","version":"1.12"},"arma3_since":"1.12","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns class name of currently used Head Mounted Display. Returns an empty string if the slot is empty.\n\n> [!NOTE]\n> 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","syntaxes":[{"syntax":"hmd unit","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"}],"returns":{"type":"String","types":["String"],"description":null,"text":"String"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\n_nvgs = hmd player; //NVGoggles\n```","code":["_nvgs = hmd player; //NVGoggles"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["headgear","goggles","binocular"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Introduced with Arma 3 version 1.12","Scripting Commands"]}