hideActions
Description
- Description:
-
Hides unwanted actions given by their enum number (see shownAction). There are 4 ways this command can hide actions:
- HideNone - when actions argument array is empty, all previously hidden actions are unhidden.
- HideAll - when actions argument array is [0], all actions are hidden. This doesn't stop actions that have key bindings from execution.
- HideSelected - when actions argument array consists of positive numbers [1,2,3,...] only the corresponding actions are hidden.
- HideAllButSelected - when actions argument array consists of negative numbers [-1,-2,-3,...] all but the corresponding actions are hidden.
Mix and match of the above will result in "Malformed command params!" script error.
- Groups:
- Interaction
Syntax
- Syntax:
- hideActions actions
- Parameters:
- actions: Array of Numbers (see description)
- Return Value:
- Boolean - true on success, false on failure. Failure may also have script error displayed (see description)
Examples
- Example 1:
- hideActions [1,2]; //hide GetInCommander and GetInDriver actions
- Example 2:
- hideActions [91]; //hide all user added actions
- Example 3:
- hideActions [-91]; //hide all engine actions leaving only user added
- Example 4:
- hideActions [0]; //hide all actions
- Example 5:
- hideActions []; //unhide all hidden actions
Additional Information
- See also:
- hiddenActions shownAction visibleMap shownGPS shownWatch shownCompass shownUAVFeed shownHUD addAction action isActionMenuVisible
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note