showHUD: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
|version1= 1.00
|version1= 1.00
|eff= local
|eff= local
|gr1= Interaction |GROUP1=


|descr= 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]].
|descr= 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]].
Line 18: Line 20:
|s2= [[showHUD]] [hud, info, radar, compass, direction, menu, group, cursors, panels, kills]
|s2= [[showHUD]] [hud, info, radar, compass, direction, menu, group, cursors, panels, kills]


|p21= [hud, info, radar, compass, direction, menu, group, cursors, panels]: [[Array]]
|p21= [hud, info, radar, compass, direction, menu, group, cursors, panels, kills]: [[Array]]


|p22= hud: [[Boolean]] - show scripted HUD (same as normal [[showHUD]] true/false)
|p22= hud: [[Boolean]] - show scripted HUD (same as normal [[showHUD]] true/false)
Line 64: Line 66:
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->

Revision as of 20:27, 25 September 2020

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.
Template:Feature arma3
Groups:
Interaction

Syntax

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

Alternative Syntax

Syntax:
showHUD [hud, info, radar, compass, direction, menu, group, cursors, panels, kills]
Parameters:
[hud, info, radar, compass, direction, menu, group, cursors, panels, kills]: Array
hud: Boolean - show scripted HUD (same as normal showHUD true/false)
info: Boolean - show vehicle + soldier info (hides weapon info from the HUD as well)
radar: Boolean - show vehicle radar
compass: Boolean - show vehicle compass
direction: Boolean - show tank direction indicator (not present in vanilla Arma 3)
menu: Boolean - show commanding menu (hides HC related menus)
group: Boolean - show group info bar (hides squad leader info bar)
cursors: Boolean - show HUD weapon cursors (connected with scripted HUD)
panels: Boolean - show vehicle panels
kills: Boolean - show "x killed by y" systemChat messages
Return Value:
Nothing

Examples

Example 1:
showHUD false;
Example 2:
Hide vehicle radar and compass:showHUD [true, true, false, false, true, true, true, true, true];
Example 3:
Check if HUD visibility is hardcoded in mission config and showHUD command is overriden:_disabledShowHUD = isArray (missionConfigFile >> "showHUD");

Additional Information

See also:
shownHUDshowCinemaBordershowSubtitlesshowWatchshowRadioshowMapshowGPSshowCompassshowPadactionIDsactionParamsaddActionsetUserActionTextinGameUISetEventHandlerinputActionremoveActionremoveAllActionsaction

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

Posted on August 17, 2015 - 17:08 (UTC)
Killzone Kid
param "cursors" controls visibility of the action menu as well as weapon cursors. However if 1st param "hud" hides and disables action menu, param "cursors" only hides it. So you get invisible action menu that is fully operational. inGameUISetEventHandler will still fire on interaction, giving the information about selected item on the action menu even if you cannot see it. Unfortunately it also hides icons drawn with drawIcon3D.
Posted on March 1, 2020 - 14:33 (UTC)
POLPOX
showHUD falseremoves Contact's compass that shown in the top of the screen.