Arma 3 Scripting

Command in Interaction

hideActions

Also available as Markdown and JSON, or read the original wiki page.

Description

Important

This command is a work in progress and can evolve until release on stable branch.

Hides/unhides user UI actions given by their enum number (see shownAction).

Note

This command hides actions for the current player (focusOn), a respawned player will have all actions unhidden so it must be reapplied.

Syntax

hideActions [mode, actions]

Parameters:

Returns: Nothing

Examples

Example 1

hideActions [true, [1, 2]]; //hide GetInCommander and GetInDriver actions

Example 2

hideActions ["UnhideSelected", [1, 2]]; //unhide GetInCommander and GetInDriver actions

Example 3

hideActions [1, [91]]; //hide all user added actions

Example 4

hideActions ["HideAllButSelected", [91]]; //hide all engine actions leaving only user added

Example 5

hideActions [3, []]; //hide all actions

Example 6

hideActions ["UnhideAllButSelected", []]; //unhide all hidden actions

See also

hiddenActions · shownAction · visibleMap · shownGPS · shownWatch · shownCompass · shownUAVFeed · shownHUD · addAction · action · isActionMenuVisible · Arma 3: Mission Event Handlers

Community notes

Honger

Hidden actions will also be unhidden once a game save is loaded/game is continued, "Loaded" Mission EH is therefore needed to maintain the chosen actions hidden. Actions need to be hidden again if player takes control of a UAV.