hideActions

From Bohemia Interactive Community
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.22.

Description

Description:
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).

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

Syntax

Syntax:
hideActions [mode, actions]
Parameters:
mode: Number or String or Boolean mode of operation, could be one of:
  • 0 or "UnhideSelected" or false - only given actions (if previously hidden) would be unhidden
  • 1 or "HideSelected" or true - only given actions would be hidden
  • 2 or "UnhideAllButSelected" - all hidden actions will be unhidden except for the given actions
  • 3 or "HideAllButSelected" - all actions will be hidden except for the given actions
actions: Array of Numbers (see shownAction)
Return Value:
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

Additional Information

See also:
hiddenActions shownAction visibleMap shownGPS shownWatch shownCompass shownUAVFeed shownHUD addAction action isActionMenuVisible Arma_3:_Mission_Event_Handlers#ActionTargetChanged

Notes

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