hmd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
No edit summary
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 doesnt immediatly 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

Revision as of 13:01, 26 August 2023

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 doesnt immediatly 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