# Interaction (scripting commands)

- [action](../../commands/action.md): Make a unit perform an action. See Category:Actions for action names and syntaxes.
- [actionIDs](../../commands/actionIDs.md): 
- [actionKeys](../../commands/actionKeys.md): Returns Array containing dikCodes of keys, buttons and combos assigned to the given user action. Action names could be found in config class ControllerSchemes or user action names or user profile, for example:
- [actionKeysEx](../../commands/actionKeysEx.md): Gives a broken down version of actionKeys return. Returns an Array containing the breakdowns of the dikCodes of keys, buttons and combos assigned to the given user action.
- [actionKeysImages](../../commands/actionKeysImages.md): Returns a list of button images or names assigned to the given user action. A maximum of *maxKeys* keys is listed. You can find the action names in the ControllerSchemes config class or user action names.
- [actionKeysNames](../../commands/actionKeysNames.md): Returns a list of button names assigned to the given user action. Action names can be found in config class `ControllerSchemes` or user action names.
- [actionKeysNamesArray](../../commands/actionKeysNamesArray.md): Returns a list of button names assigned to the given user action. You can find the action names in config class ControllerSchemes or user action names.
- [actionName](../../commands/actionName.md): Returns localized name of action.
- [actionNow](../../commands/actionNow.md): Make a unit perform an action immediately (without any animation/pre-processing). See the action command for more information.
- [actionParams](../../commands/actionParams.md): Returns Array with params for given user action id (similar to addAction param array).
- [addAction](../../commands/addAction.md): Adds an entry to the action menu of an object. The action can only be activated when in proximity to the object and looking at it. Adding an action to the player makes that action available to the player at all times.
- [commandingMenu](../../commands/commandingMenu.md): Returns the name of the topmost commanding menu or "" if the menu is closed. For action menu visibility check see isActionMenuVisible. See #Notes for Arma 2/Arma 3 structure.
- [disableUserInput](../../commands/disableUserInput.md): Disables or enables the keyboard and mouse input. Usually used during cutscenes.
- [drawIcon3D](../../commands/drawIcon3D.md): Draws an icon at the given position in the game world. This command has to be executed every frame. Use the Draw3D Mission Event Handler (which is executed every frame if the user can see the icon).
- [drawLaser](../../commands/drawLaser.md): Draws a laserbeam and a lightpoint at the impact location of the laser.
- [drawLine3D](../../commands/drawLine3D.md): Draws a line of a given colour between two 3D positions in the current frame. To be used mostly in a "Draw3D" mission event handler.
- [forcedMap](../../commands/forcedMap.md): Returns if map was forced by using forceMap command or openMap command with force option
- [forceMap](../../commands/forceMap.md): Opens non-interactive main map in background that overrides user screen. To force open interactive map use openMap command.
- [getUserMFDValue](../../commands/getUserMFDValue.md): Returns array of user text variables used in MFD.
- [groupSelectedUnits](../../commands/groupSelectedUnits.md): Returns selected units in source group for normal commanding mode (individual units). For the High Command equivalent, see hcSelected.
- [groupSelectUnit](../../commands/groupSelectUnit.md): Selects a unit from player's group. If player is the leader, the effect of this command is similar to player pressing <kbd>F1</kbd>, <kbd>F2</kbd>, <kbd>F3</kbd> etc to highlight units in his squad, after which the unit…
- [hiddenActions](../../commands/hiddenActions.md): Getter for hideActions, see also shownAction.
- [hideActions](../../commands/hideActions.md): Hides/unhides user UI actions given by their enum number (see shownAction).
- [hint](../../commands/hint.md): Outputs a hint message to the right of the screen (left of the screen in Operation Flashpoint) with a sound (except in Armed Assault).
- [hintC](../../commands/hintC.md): Displays a very basic message dialog in the center of the screen. Player control is taken away until "Continue" is pressed. The message dialog can be dragged around on the screen.
- [hintCadet](../../commands/hintCadet.md): Shows a text hint only when in cadetMode.
- [hintSilent](../../commands/hintSilent.md): Same as hint, but without a sound.
- [HUDMovementLevels](../../commands/HUDMovementLevels.md): Returns movement borders for HUD
- [inGameUISetEventHandler](../../commands/inGameUISetEventHandler.md): Sets given event handler of in-game UI. If EH function returns true, performed action is overridden.
- [inputAction](../../commands/inputAction.md): Return the state of input devices mapped to given input action.
- [inputController](../../commands/inputController.md): Returns the state of controller inputs. The controller is a standard XBOX controller which is selected with Windows XBOX controller scheme.
- [inputMouse](../../commands/inputMouse.md): Returns the state of mouse button action, alone or in combination with key presses.
- [isActionMenuVisible](../../commands/isActionMenuVisible.md): Returns true if scroll menu is visible.
- [openGPS](../../commands/openGPS.md): Opens or closes minimap if player has `"ItemGPS"` linked in inventory and `"MinimapDisplayComponent"` is not disabled with enableInfoPanelComponent. Returns true on success.
- [openMap](../../commands/openMap.md): Opens or closes in-game map.
- [removeAction](../../commands/removeAction.md): Removes user added action with given ID. This only removes actions added with the addAction command. You cannot remove default game actions, such as reload.
- [removeAllActions](../../commands/removeAllActions.md): Removes all unit's user added actions.
- [setCompassDeclination](../../commands/setCompassDeclination.md): Sets the declination angle of player's compass, which is the difference between magnetic north and true north.
- [setCompassOscillation](../../commands/setCompassOscillation.md): This command sets random heading on the player's compass (both in map and in 3D view) with given frequency, which is also randomised.
- [setHUDMovementLevels](../../commands/setHUDMovementLevels.md): Set min/max movement borders displayed in HUD gauges. Use -1 to skip some value.
- [setRadioMsg](../../commands/setRadioMsg.md): Sets radio trigger menu title text (0 -> 0 -> map radio). Use "NULL" to disable radio slot. Use "" to restore default title.
- [setUserActionText](../../commands/setUserActionText.md): Changes user added action (see addAction) menu item text.
- [setUserMFDValue](../../commands/setUserMFDValue.md): When MFD is using user controllers, this command can set values on them. For example, MFD config for Blackfoot has an entry
- [showCommandingMenu](../../commands/showCommandingMenu.md): Create the commanding menu described by the given config class or menu name. When the name is empty, the current menu is hidden.
- [showCompass](../../commands/showCompass.md): Shows or hides the compass on the map screen, if enabled for the mission and you possess the item. (default true)
- [showGPS](../../commands/showGPS.md): Shows or hides the GPS receiver on the map screen, if enabled for the mission and you possess the item. (default false).
- [showHUD](../../commands/showHUD.md): 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.
- [shownAction](../../commands/shownAction.md): Get the internal enum of the displayed action (or 0 if none are displayed). Action enums: 1. GetInCommander 1. GetInDriver 1. GetInPilot 1. GetInGunner 1. GetInCargo 1. GetInTurret 1. Heal 1. Repair 1. Refuel 1.
- [shownCompass](../../commands/shownCompass.md): Checks if client has Compass enabled in description.ext (*showCompass* param) or force enabled with showCompass command.
- [shownGPS](../../commands/shownGPS.md): Checks if client has GPS receiver enabled in description.ext (*showGPS* param) or force enabled with showGPS command.
- [shownHUD](../../commands/shownHUD.md): Returns array of Booleans corresponding to the visibility of various HUD elements (see extended showHUD).
- [shownPad](../../commands/shownPad.md): Checks if client has Notepad enabled.
- [shownRadio](../../commands/shownRadio.md): Check if player has Radio enabled.
- [shownScoretable](../../commands/shownScoretable.md): Returns the state of the score table set with showScoretable command.
- [shownWarrant](../../commands/shownWarrant.md): Check if player has ID card enabled. Obsolete command.
- [shownWatch](../../commands/shownWatch.md): Checks if client has Watch enabled in description.ext (*showWatch* param) or force enabled with showWatch command.
- [showPad](../../commands/showPad.md): Shows or hides the notebook on the map screen, if enabled for the mission. (default true). It is no longer relevant to Arma 2.
- [showRadio](../../commands/showRadio.md): Shows or hides the radio on the map screen, if enabled for the mission and you possess the item. (default true).
- [showScoretable](../../commands/showScoretable.md): Forces the score table to be shown, hidden or reset to default functionality. Forcing score table will make it show even in SP.
- [showWarrant](../../commands/showWarrant.md) **[broken]**: Enable ID card.
- [showWatch](../../commands/showWatch.md): Shows or hides the watch on the map screen, if enabled for the mission and you possess the item. (default true)
- [userInputDisabled](../../commands/userInputDisabled.md): Returns whether or not user input is disabled.
- [visibleCompass](../../commands/visibleCompass.md): Checks if the player has compass opened and visible. Keep in mind that the GPS minimap in Arma 3 also shows the direction.
- [visibleGPS](../../commands/visibleGPS.md): Checks if the player has GPS receiver (minimap) opened and visible.
- [visibleMap](../../commands/visibleMap.md): Return true if the main map is shown (active). In Arma 3 it also returns true if the respawn screen map is visible.
- [visibleScoretable](../../commands/visibleScoretable.md): Checks whether the score table is visible.
- [visibleWatch](../../commands/visibleWatch.md): Checks if the player has watch opened and visible. Keep in mind that the GPS minimap in Arma 3 also shows the time.
