hmd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(7 intermediate revisions by 2 users not shown)
Line 8: Line 8:


|descr= Returns class name of currently used Head Mounted Display. Returns an empty string if the slot is empty.
|descr= Returns class name of currently used Head Mounted Display. Returns an empty string if the slot is empty.
{{Feature|informative|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}}


|s1= [[hmd]] unit
|s1= [[hmd]] unit
Line 15: Line 17:
|r1= [[String]]
|r1= [[String]]


|x1= <code>_nvgs = [[hmd]] [[player]]; //NVGoggles</code>
|x1= <sqf>_nvgs = hmd player; //NVGoggles</sqf>
   
   


|seealso= [[headgear]] [[goggles]], [[binocular]]
|seealso= [[headgear]] [[goggles]] [[binocular]]
}}
}}

Latest revision as of 00:24, 2 February 2024

Hover & click on the images for description

Description

Description:
Returns class name of currently used Head Mounted Display. Returns an empty string if the slot is empty.
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
Groups:
Unit Inventory

Syntax

Syntax:
hmd unit
Parameters:
unit: Object
Return Value:
String

Examples

Example 1:
_nvgs = hmd player; //NVGoggles

Additional Information

See also:
headgear goggles binocular

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note