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