---
name: "actionParams"
type: command
status: ok
groups: ["Interaction"]
arma3_since: "1.64"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/actionParams
revid: 377675
updated: 2026-01-02T09:02:37Z
---

# actionParams

*Command · Interaction · Arma 3 v1.64*

## Description

Returns [Array](../topics/Array.md) with params for given user action id (similar to [addAction](../commands/addAction.md) param array).

## Syntax

```sqf
entity actionParams id
```

**Parameters:**

- `entity`: [Object](../topics/Object.md) - entity with added user actions
- `id`: [Number](../topics/Number.md) - id of existing user action (returned by [addAction](../commands/addAction.md) or [actionIDs](../commands/actionIDs.md))

**Returns:** [Array](../topics/Array.md) with [title, script, arguments, priority, showWindow, hideOnUse, shortcut, condition, radius, unconscious, textWindowBackground, textWindowForeground, selection, memoryPoint]
- title: [String](../topics/String.md) - action title text
- script: [String](../topics/String.md) - script file or script expression assigned to the action
- arguments: [Anything](../topics/Anything.md) or [nil](../commands/nil.md) - arguments passed to the action
- priority: [Number](../topics/Number.md) - action priority on the action menu
- showWindow: [Boolean](../topics/Boolean.md) - whether the action is shown in the center of the screen too
- hideOnUse: [Boolean](../topics/Boolean.md) - whether the action menu should close after selecting the action
- shortcut: [String](../topics/String.md) - action bindings to some existing engine action if any
- condition: [String](../topics/String.md) - expression returning [true](../commands/true.md) or [nil](../commands/nil.md) for action to appear on the action menu
- radius: [Number](../topics/Number.md) - max distance to entity at which action becomes available. -1 means it is engine default (~15m)
- unconscious: [Boolean](../topics/Boolean.md) - whether the action is available to [unconscious](../commands/setUnconscious.md) person
- textWindowBackground: [String](../topics/String.md) - same as textWindowBackground in [setUserActionText](../commands/setUserActionText.md)
- textWindowForeground: [String](../topics/String.md) - same as textWindowForeground in [setUserActionText](../commands/setUserActionText.md)
- selection: [String](../topics/String.md) - named selection in Geometry LOD to which the action is attached
- memoryPoint: [String](../topics/String.md) - memory point on the object to which the action is attached
If *entity* is [objNull](../commands/objNull.md), the following array is returned:

```sqf
["", "", nil, 1.5, true, true, "", "", 50, false, "", "", "", ""]
```

(returned [Nothing](../topics/Nothing.md) until Arma 3 v1.94)

## Examples

### Example 1

```sqf
_params = player actionParams 0;
```

## See also

[actionIDs](../commands/actionIDs.md) · [addAction](../commands/addAction.md) · [setUserActionText](../commands/setUserActionText.md) · [inGameUISetEventHandler](../commands/inGameUISetEventHandler.md) · [showHUD](../commands/showHUD.md) · [inputAction](../commands/inputAction.md) · [removeAction](../commands/removeAction.md) · [removeAllActions](../commands/removeAllActions.md) · [action](../commands/action.md)

<sub>Source: [BI Community Wiki — actionParams](https://community.bistudio.com/wiki/actionParams) (revision 377675).</sub>
