{"name":"actionParams","operator":null,"title":"actionParams","type":"command","url":"https://community.bistudio.com/wiki/actionParams","revid":377675,"updated":"2026-01-02T09:02:37Z","groups":["Interaction"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.64"}],"since":{"game":"arma3","name":"Arma 3","version":"1.64"},"arma3_since":"1.64","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns Array with params for given user action id (similar to addAction param array).","syntaxes":[{"syntax":"entity actionParams id","since":null,"effect":null,"exec":null,"params":[{"name":"entity","type":"Object","optional":false,"default":null,"description":"entity with added user actions","types":["Object"],"since":null,"text":"entity: Object - entity with added user actions"},{"name":"id","type":"Number","optional":false,"default":null,"description":"id of existing user action (returned by addAction or actionIDs)","types":["Number"],"since":null,"text":"id: Number - id of existing user action (returned by addAction or actionIDs)"}],"returns":{"type":"Array with [title, script, arguments, priority, showWindow, hideOnUse, shortcut, condition, radius, unconscious, textWindowBackground, textWindowForeground, selection, memoryPoint]","types":["Array"],"description":"title: String - action title text - script: String - script file or script expression assigned to the action - arguments: Anything or nil - arguments passed to the action - priority: Number - action priority on the action menu - showWindow: Boolean - whether the action is shown in the center of the screen too - hideOnUse: Boolean - whether the action menu should close after selecting the action - shortcut: String - action bindings to some existing engine action if any - condition: String - expression returning true or nil for action to appear on the action menu - radius: Number - max distance to entity at which action becomes available. -1 means it is engine default (~15m) - unconscious: Boolean - whether the action is available to unconscious person - textWindowBackground: String - same as textWindowBackground in setUserActionText - textWindowForeground: String - same as textWindowForeground in setUserActionText - selection: String - named selection in Geometry LOD to which the action is attached - memoryPoint: String - memory point on the object to which the action is attached If entity is objNull, the following array is returned: ```sqf [\"\", \"\", nil, 1.5, true, true, \"\", \"\", 50, false, \"\", \"\", \"\", \"\"] ``` (returned Nothing until Arma 3 v1.94)","text":"Array with [title, script, arguments, priority, showWindow, hideOnUse, shortcut, condition, radius, unconscious, textWindowBackground, textWindowForeground, selection, memoryPoint]\n- title: String - action title text\n- script: String - script file or script expression assigned to the action\n- arguments: Anything or nil - arguments passed to the action\n- priority: Number - action priority on the action menu\n- showWindow: Boolean - whether the action is shown in the center of the screen too\n- hideOnUse: Boolean - whether the action menu should close after selecting the action\n- shortcut: String - action bindings to some existing engine action if any\n- condition: String - expression returning true or nil for action to appear on the action menu\n- radius: Number - max distance to entity at which action becomes available. -1 means it is engine default (~15m)\n- unconscious: Boolean - whether the action is available to unconscious person\n- textWindowBackground: String - same as textWindowBackground in setUserActionText\n- textWindowForeground: String - same as textWindowForeground in setUserActionText\n- selection: String - named selection in Geometry LOD to which the action is attached\n- memoryPoint: String - memory point on the object to which the action is attached\nIf *entity* is objNull, the following array is returned:\n\n```sqf\n[\"\", \"\", nil, 1.5, true, true, \"\", \"\", 50, false, \"\", \"\", \"\", \"\"]\n```\n\n(returned Nothing until Arma 3 v1.94)"},"form":"binary","operator":null,"left":{"text":"entity","types":["Object"]},"right":{"text":"id","types":["Number"]}}],"examples":[{"text":"```sqf\n_params = player actionParams 0;\n```","code":["_params = player actionParams 0;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["actionIDs","addAction","setUserActionText","inGameUISetEventHandler","showHUD","inputAction","removeAction","removeAllActions","action"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Interaction","Introduced with Arma 3 version 1.64","Scripting Commands"]}