showHUD: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(description, seealso)
No edit summary
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Enable / disable showing of HUD. Defines visibility of weapon crosshair and any informational tags that appear when pointing the weapon at an object as well as availability of the default action menu. Unfortunately, it also hides icons drawn with [[drawIcon3D]].|= Description
| Enable / disable showing of HUD. Defines visibility of weapon crosshair and any informational tags that appear when pointing the weapon at an object as well as availability of the default action menu. Unfortunately, it also hides icons drawn with [[drawIcon3D]].
<br><br>Appearance of HUD can also be controlled with [[Description.ext#showHUD|showHUD param in description.ext]]. '''NOTE:''' As of Arma 3 v1.49.???? there is a ''showHUD[]'' array param, that is identical in format to the extended [[showHUD]] command. When ''showHUD[]'' array param is present in ''description.ext'', it will disable [[showHUD]] command entirely, allowing mission makers to permanently alter visibility of some HUD elements.  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 21: Line 22:


| [[Nothing]] |= RETURNVALUE  
| [[Nothing]] |= RETURNVALUE  
| s2='''showHUD''' [hud, info, radar, compass, direction, menu, group, cursors] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (''Since Arma 3 v1.49.????'')|= Syntax
|p21= [hud, info, radar, compass, direction, menu, group, cursors]: [[Array]] |= PARAMETER1
|p22= hud: [[Boolean]] - show scripted HUD (same as normal [[showHUD]] true/false)|= PARAMETER2
|p23= info: [[Boolean]] - show vehicle + soldier info|= PARAMETER3
|p24= radar: [[Boolean]] - show vehicle radar|= PARAMETER3
|p25= compass: [[Boolean]] - show vehicle compass|= PARAMETER3
|p26= direction: [[Boolean]] - show tank direction indicator|= PARAMETER3
|p27= menu: [[Boolean]] - show commanding menu|= PARAMETER3
|p28= group: [[Boolean]] - show group info bar|= PARAMETER3
|p29= cursors: [[Boolean]] - show HUD weapon cursors (connected with scripted HUD)|= PARAMETER3
| r2= [[Nothing]] |= RETURNVALUE


|x1= <code>[[showHUD]] [[false]];</code>|= EXAMPLE1  
|x1= <code>[[showHUD]] [[false]];</code>|= EXAMPLE1  
|x2= Hide vehicle radar and compass:<code>[[showHUD]] <nowiki>[</nowiki>[[true]],[[true]],[[false]],[[false]],[[true]],[[true]],[[true]],[[true]]];</code>|= EXAMPLE1




____________________________________________________________________________________________
____________________________________________________________________________________________


| [[showCinemaBorder]], [[showSubtitles]], [[showWatch]], [[showRadio]], [[showMap]], [[showGPS]], [[showCompass]], [[showPad]] |= SEEALSO  
| [[shownHUD]], [[showCinemaBorder]], [[showSubtitles]], [[showWatch]], [[showRadio]], [[showMap]], [[showGPS]], [[showCompass]], [[showPad]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 14:53, 14 August 2015

Hover & click on the images for description

Description

Description:
Enable / disable showing of HUD. Defines visibility of weapon crosshair and any informational tags that appear when pointing the weapon at an object as well as availability of the default action menu. Unfortunately, it also hides icons drawn with drawIcon3D.

Appearance of HUD can also be controlled with showHUD param in description.ext. NOTE: As of Arma 3 v1.49.???? there is a showHUD[] array param, that is identical in format to the extended showHUD command. When showHUD[] array param is present in description.ext, it will disable showHUD command entirely, allowing mission makers to permanently alter visibility of some HUD elements.
Groups:
Uncategorised

Syntax

Syntax:
showHUD enable
Parameters:
enable: Boolean
Return Value:
Nothing

Alternative Syntax

Syntax:
showHUD [hud, info, radar, compass, direction, menu, group, cursors]         (Since Arma 3 v1.49.????)
Parameters:
[hud, info, radar, compass, direction, menu, group, cursors]: Array
hud: Boolean - show scripted HUD (same as normal showHUD true/false)
info: Boolean - show vehicle + soldier info
radar: Boolean - show vehicle radar
compass: Boolean - show vehicle compass
direction: Boolean - show tank direction indicator
menu: Boolean - show commanding menu
group: Boolean - show group info bar
cursors: Boolean - show HUD weapon cursors (connected with scripted HUD)
Return Value:
Nothing

Examples

Example 1:
showHUD false;
Example 2:
Hide vehicle radar and compass:showHUD [true,true,false,false,true,true,true,true];

Additional Information

See also:
shownHUDshowCinemaBordershowSubtitlesshowWatchshowRadioshowMapshowGPSshowCompassshowPad

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

Notes

Bottom Section