{"name":"BIS_fnc_holdActionAdd","operator":null,"title":"BIS fnc holdActionAdd","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_holdActionAdd","revid":376577,"updated":"2025-10-28T11:45:09Z","groups":["Interaction"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.62"}],"since":{"game":"arma3","name":"Arma 3","version":"1.62"},"arma3_since":"1.62","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"description":"Adds an action to an object which requires the user to hold a key to perform the action.\n\nAvailable official icons as of Arma 3 v2.10:\n\n- \"\\a3\\Missions_F_Orange\\Data\\Img\\Showcase_LawsOfWar\\action_access_fm_CA.paa\"\n- \"\\a3\\Missions_F_Orange\\Data\\Img\\Showcase_LawsOfWar\\action_end_sim_CA.paa\"\n- \"\\a3\\Missions_F_Orange\\Data\\Img\\Showcase_LawsOfWar\\action_exit_CA.paa\"\n- \"\\a3\\Missions_F_Orange\\Data\\Img\\Showcase_LawsOfWar\\action_start_sim_CA.paa\"\n- \"\\a3\\Missions_F_Orange\\Data\\Img\\Showcase_LawsOfWar\\action_view_article_CA.paa\"\n- \"\\a3\\data_f_destroyer\\data\\UI\\IGUI\\Cfg\\holdactions\\holdAction_loadVehicle_ca.paa\"\n- \"\\a3\\data_f_destroyer\\data\\UI\\IGUI\\Cfg\\holdactions\\holdAction_unloadVehicle_ca.paa\"\n- \"\\a3\\missions_f_oldman\\data\\img\\holdactions\\holdAction_box_ca.paa\"\n- \"\\a3\\missions_f_oldman\\data\\img\\holdactions\\holdAction_follow_start_ca.paa\"\n- \"\\a3\\missions_f_oldman\\data\\img\\holdactions\\holdAction_follow_stop_ca.paa\"\n- \"\\a3\\missions_f_oldman\\data\\img\\holdactions\\holdAction_talk_ca.paa\"\n- \"\\a3\\props_f_enoch\\items\\tools\\data\\tinfoil_action_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_connect_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_forceRespawn_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_hack_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_loaddevice_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_passleadership_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_requestleadership_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_reviveMedic_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_revive_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_search_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_secure_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_takeOff1_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_takeOff2_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_thumbsdown_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_thumbsup_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_unbind_ca.paa\"\n- \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_unloaddevice_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_0_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_1_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_2_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_3_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_4_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_5_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_6_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_7_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_8_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_9_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_10_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\idle\\idle_11_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\in\\in_0_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\in\\in_1_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\in\\in_2_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\in\\in_3_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_0_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_1_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_2_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_3_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_4_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_5_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_6_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_7_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_8_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_9_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_10_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_11_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_12_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_13_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_14_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_15_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_16_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_17_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_18_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_19_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_20_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_21_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_22_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_23_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress2\\progress_24_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_0_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_1_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_2_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_3_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_4_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_5_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_6_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_7_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_8_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_9_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_10_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_11_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_12_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_13_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_14_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_15_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_16_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_17_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_18_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_19_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_20_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_21_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_22_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_23_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\holdactions\\progress\\progress_24_ca.paa\"\n- \"\\a3\\ui_f_oldman\\data\\IGUI\\Cfg\\holdactions\\attack_ca.paa\"\n- \"\\a3\\ui_f_oldman\\data\\IGUI\\Cfg\\holdactions\\destroy_ca.paa\"\n- \"\\a3\\ui_f_oldman\\data\\IGUI\\Cfg\\holdactions\\holdAction_market_ca.paa\"\n- \"\\a3\\ui_f_oldman\\data\\IGUI\\Cfg\\holdactions\\holdAction_sleep2_ca.paa\"\n- \"\\a3\\ui_f_oldman\\data\\IGUI\\Cfg\\holdactions\\holdAction_sleep_ca.paa\"\n- \"\\a3\\ui_f_oldman\\data\\IGUI\\Cfg\\holdactions\\map_ca.paa\"\n- \"\\a3\\ui_f_oldman\\data\\IGUI\\Cfg\\holdactions\\meet_ca.paa\"\n- \"\\a3\\ui_f_oldman\\data\\IGUI\\Cfg\\holdactions\\refuel_ca.paa\"\n- \"\\a3\\ui_f_oldman\\data\\IGUI\\Cfg\\holdactions\\repair_ca.paa\"\n- \"\\a3\\ui_f_orange\\Data\\CfgOrange\\Missions\\action_aaf_ca.paa\"\n- \"\\a3\\ui_f_orange\\Data\\CfgOrange\\Missions\\action_csat_ca.paa\"\n- \"\\a3\\ui_f_orange\\Data\\CfgOrange\\Missions\\action_escape_ca.paa\"\n- \"\\a3\\ui_f_orange\\Data\\CfgOrange\\Missions\\action_fia_ca.paa\"\n- \"\\a3\\ui_f_orange\\Data\\CfgOrange\\Missions\\action_fragment_back_ca.paa\"\n- \"\\a3\\ui_f_orange\\Data\\CfgOrange\\Missions\\action_fragment_ca.paa\"\n- \"\\a3\\ui_f_orange\\Data\\CfgOrange\\Missions\\action_idap_ca.paa\"\n- \"\\a3\\ui_f_orange\\Data\\CfgOrange\\Missions\\action_nato_ca.paa\"\n- \"\\a3\\ui_f_aow\\data\\igui\\cfg\\holdactions\\holdaction_charity_ca.paa\"\n\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\takeflag_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\talk_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\unloadallvehicles_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\unloadincapacitated_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\unloadvehicle_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\vtolvectoring_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\vtolvectoringcancel_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\arrow_down_gs.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\arrow_up_gs.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\autohover_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\bandage_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\beacons_off_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\beacons_on_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\cancelhover_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\clear_empty_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\close_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\eject_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\engine_off_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\engine_on_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\flapsextend_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\flapsretract_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\gear_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\getincargo_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\getincommander_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\getindriver_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\getingunner_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\getinpilot_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\getout_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\heal_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_batt_off_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_batt_on_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_brk_on_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_col_off_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_col_on_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_land_off_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_land_on_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_start_off_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_start_on_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_thtl_idl_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_thtl_off_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_cpt_thtl_on_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_off_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ico_on_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ladderdown_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ladderoff_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\ladderup_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\landingautopilot_off_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\landingautopilot_on_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\loadvehicle_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\open_door_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\periscopedepth_off_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\periscopedepth_on_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\radaroff_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\radaron_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\reammo_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\refuel_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\reload_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\repair_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\returnflag_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\settimer_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\take_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_arrow_up_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_cancel_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_cancel_manualfire_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_deactivate_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_enter_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_exit_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_fire_in_flame_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_fire_put_down_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_gear_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_getin_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_getincargo.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_ladderondown_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_ladderonup_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_manualfire_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_open_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_takemagazine_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_takemine_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_takeweapon_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_teamswitch_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_turnin_ca.paa\"\n- \"\\a3\\ui_f\\data\\igui\\cfg\\actions\\obsolete\\ui_action_turnout_ca.paa\"\n- \"\\a3\\ui_f_jets\\data\\igui\\cfg\\actions\\action_attachtocatapult_ca.paa\"\n- \"\\a3\\ui_f_jets\\data\\igui\\cfg\\actions\\action_detachtocatapult_ca.paa\"\n- \"\\a3\\ui_f_jets\\data\\igui\\cfg\\actions\\action_launchfromcatapult_ca.paa\"\n\n```sqf\n0 spawn\n{\n    // EXECUTE IN EDEN EDITOR OR EDITOR PREVIEW!\n    disableSerialization;\n\n    private _display = findDisplay 313 createDisplay \"RscDisplayEmpty\";\n\n    private _edit = _display ctrlCreate [\"RscEdit\", 645];\n    _edit ctrlSetPosition [safezoneX + 50 * pixelW, safezoneY + 50 * pixelH, safezoneW - 500 * pixelW, 50 * pixelH];\n    _edit ctrlSetBackgroundColor [0,0,0,1];\n    _edit ctrlCommit 0;\n\n    private _status = _display ctrlCreate [\"RscEdit\", 1337];\n    _status ctrlSetPosition [safezoneX + safezoneW - 400 * pixelW, safezoneY + 50 * pixelH, 350 * pixelW, 50 * pixelH];\n    _status ctrlSetBackgroundColor [0,0,0,1];\n    _status ctrlCommit 0;\n    _status ctrlEnable false;\n\n    private _tv = _display ctrlCreate [\"RscTreeSearch\", -1];\n    _tv ctrlSetFont \"EtelkaMonospacePro\";\n    _tv ctrlSetFontHeight 0.05;\n    _tv ctrlSetPosition [safezoneX + 50 * pixelW, safezoneY + 125 * pixelH, safezoneW - 100 * pixelW, safeZoneH - 175 * pixelH];\n    _tv ctrlSetBackgroundColor [0,0,0,1];\n    _tv ctrlCommit 0;\n\n    _tv ctrlAddEventHandler [\"treeSelChanged\",\n    {\n        params [\"_ctrlTV\", \"_selectionPath\"];\n        copyToClipboard (_ctrlTV tvText _selectionPath);\n        playSound (\"RscDisplayCurator_ping\" + selectRandom [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\"]);\n        (ctrlParent _ctrlTv) displayCtrl 1337 ctrlSetText \"Path copied to clipboard!\";\n    }];\n\n    private _counter = 0;\n    {\n        private _files = addonFiles [_x # 0, \".paa\"];\n        {\n            if (\"\\actions\" in _x || \"\\holdaction\" in _x) then\n            {\n                _counter = _counter + 1;\n                _status ctrlSetText format [\"%1 textures found.\", _counter];\n                private _index = _tv tvAdd [[], _x];\n                _tv tvSetPicture [[_index], _x];\n            };\n        } forEach _files;\n    } foreach allAddonsInfo;\n\n    _tv tvSortall [[], false];\n};\n```","syntaxes":[{"syntax":"[target, title, idleIcon, progressIcon, conditionShow, conditionProgress, codeStart, codeProgress, codeCompleted, codeInterrupted, arguments, duration, priority, removeCompleted, showUnconscious, showWindow, radius, selection, memoryPoint] call BIS_fnc_holdActionAdd","since":null,"effect":null,"exec":null,"params":[{"name":"target","type":"Object","optional":false,"default":null,"description":"object the action is attached to","types":["Object"],"since":null,"text":"target: Object - object the action is attached to"},{"name":"title","type":"String","optional":false,"default":null,"description":"title of the action shown in the action menu.It can contain Structured Text tags, such as `<t color='#FFAA00'>text</t>`","types":["String"],"since":null,"text":"title: String - title of the action shown in the action menu.It can contain Structured Text tags, such as `<t color='#FFAA00'>text</t>`"},{"name":"idleIcon","type":"String","optional":true,"default":"\"\\A3\\Ui_f\\data\\IGUI\\Cfg\\HoldActions\\holdAction_revive_ca.paa\"","description":"path of the idle icon shown on screen","types":["String"],"since":null,"text":"idleIcon: String - (Optional, default \"\\A3\\Ui_f\\data\\IGUI\\Cfg\\HoldActions\\holdAction_revive_ca.paa\") path of the idle icon shown on screen"},{"name":"progressIcon","type":"String","optional":true,"default":"\"\\A3\\Ui_f\\data\\IGUI\\Cfg\\HoldActions\\holdAction_revive_ca.paa\"","description":"path of the progress icon shown on screen","types":["String"],"since":null,"text":"progressIcon: String - (Optional, default \"\\A3\\Ui_f\\data\\IGUI\\Cfg\\HoldActions\\holdAction_revive_ca.paa\") path of the progress icon shown on screen"},{"name":"conditionShow","type":"String","optional":true,"default":"\"true\"","description":"condition for the action to be shown.\n\nSpecial arguments passed to the code: `_target` (action-attached object), `_this` (caller/executing unit)","types":["String"],"since":null,"text":"conditionShow: String - (Optional, default \"true\") condition for the action to be shown.\n\nSpecial arguments passed to the code: `_target` (action-attached object), `_this` (caller/executing unit)"},{"name":"conditionProgress","type":"String","optional":true,"default":"\"true\"","description":"condition for the action to progress; if false is returned action progress is paused.\n\nSpecial arguments passed to the code: `_target`, `_caller`, `_actionId`, `_arguments`","types":["String"],"since":null,"text":"conditionProgress: String - (Optional, default \"true\") condition for the action to progress; if false is returned action progress is paused.\n\nSpecial arguments passed to the code: `_target`, `_caller`, `_actionId`, `_arguments`"},{"name":"codeStart","type":"Code","optional":true,"default":"`{}`","description":"code executed when action starts.\n\nSpecial arguments passed to the code: `_target`, `_caller`, `_actionId`, `_arguments`\n\nPassed arguments are:\n\n```sqf\nparams [\"_target\", \"_caller\", \"_actionId\", \"_arguments\"];\n```\n\n- target: Object - the object which the action is assigned to\n- caller: Object - the unit that activated the action\n- actionId: Number - ID of the activated action (same as ID returned by addAction)\n- arguments: Array - arguments given to the function","types":["Code"],"since":null,"text":"codeStart: Code - (Optional, default `{}`) code executed when action starts.\n\nSpecial arguments passed to the code: `_target`, `_caller`, `_actionId`, `_arguments`\n\nPassed arguments are:\n\n```sqf\nparams [\"_target\", \"_caller\", \"_actionId\", \"_arguments\"];\n```\n\n- target: Object - the object which the action is assigned to\n- caller: Object - the unit that activated the action\n- actionId: Number - ID of the activated action (same as ID returned by addAction)\n- arguments: Array - arguments given to the function"},{"name":"codeProgress","type":"Code","optional":true,"default":"`{}`","description":"code executed on every progress tick.\n\nSpecial arguments passed to the code: `_target`, `_caller`, `_actionId`, `_arguments`, `_frame`\n\nPassed arguments are:\n\n```sqf\nparams [\"_target\", \"_caller\", \"_actionId\", \"_arguments\", \"_frame\", \"_maxFrame\"];\n```\n\n- target: Object - the object which the action is assigned to\n- caller: Object - the unit that activated the action\n- actionId: Number - ID of the activated action (same as ID returned by addAction)\n- arguments: Array - arguments given to the function\n- frame: Number - current progress, goes from 1 to 24\n- maxFrame: Number - maximum progress (24)","types":["Code"],"since":null,"text":"codeProgress: Code - (Optional, default `{}`) code executed on every progress tick.\n\nSpecial arguments passed to the code: `_target`, `_caller`, `_actionId`, `_arguments`, `_frame`\n\nPassed arguments are:\n\n```sqf\nparams [\"_target\", \"_caller\", \"_actionId\", \"_arguments\", \"_frame\", \"_maxFrame\"];\n```\n\n- target: Object - the object which the action is assigned to\n- caller: Object - the unit that activated the action\n- actionId: Number - ID of the activated action (same as ID returned by addAction)\n- arguments: Array - arguments given to the function\n- frame: Number - current progress, goes from 1 to 24\n- maxFrame: Number - maximum progress (24)"},{"name":"codeCompleted","type":"Code","optional":true,"default":"`{}`","description":"code executed on completion.\n\nSpecial arguments passed to the code: `_target`, `_caller`, `_actionId`, `_arguments`\n\nPassed arguments are:\n\n```sqf\nparams [\"_target\", \"_caller\", \"_actionId\", \"_arguments\"]; // same as codeStart\n```","types":["Code"],"since":null,"text":"codeCompleted: Code - (Optional, default `{}`) code executed on completion.\n\nSpecial arguments passed to the code: `_target`, `_caller`, `_actionId`, `_arguments`\n\nPassed arguments are:\n\n```sqf\nparams [\"_target\", \"_caller\", \"_actionId\", \"_arguments\"]; // same as codeStart\n```"},{"name":"codeInterrupted","type":"Code","optional":true,"default":"`{}`","description":"code executed on interrupted.\n\nSpecial arguments passed to the code: `_target`, `_caller`, `_actionId`, `_arguments`\n\nPassed arguments are:\n\n```sqf\nparams [\"_target\", \"_caller\", \"_actionId\", \"_arguments\"]; // same as codeCompleted\n```","types":["Code"],"since":null,"text":"codeInterrupted: Code - (Optional, default `{}`) code executed on interrupted.\n\nSpecial arguments passed to the code: `_target`, `_caller`, `_actionId`, `_arguments`\n\nPassed arguments are:\n\n```sqf\nparams [\"_target\", \"_caller\", \"_actionId\", \"_arguments\"]; // same as codeCompleted\n```"},{"name":"arguments","type":"Array","optional":true,"default":"`[]`","description":"arguments passed to **codeStart**, **codeProgress**, **codeCompleted** and **codeInterrupted** (max 10) in format:\n\n```sqf\nparams [\n    \"_a0\", \"_a1\", \"_a2\", \"_a3\", \"_a4\", \"_a5\", \"_a6\", \"_a7\", \"_a8\", \"_a9\", // custom arguments\n    \"_target\", \"_title\", \"_iconIdle\", \"_iconProgress\",\n    \"_condShow\", \"_condProgress\", \"_codeStart\", \"_codeProgress\", \"_codeCompleted\", \"_codeInterrupted\",\n    \"_duration\", \"_removeCompleted\"\n];\n```","types":["Array"],"since":null,"text":"arguments: Array - (Optional, default `[]`) arguments passed to **codeStart**, **codeProgress**, **codeCompleted** and **codeInterrupted** (max 10) in format:\n\n```sqf\nparams [\n    \"_a0\", \"_a1\", \"_a2\", \"_a3\", \"_a4\", \"_a5\", \"_a6\", \"_a7\", \"_a8\", \"_a9\", // custom arguments\n    \"_target\", \"_title\", \"_iconIdle\", \"_iconProgress\",\n    \"_condShow\", \"_condProgress\", \"_codeStart\", \"_codeProgress\", \"_codeCompleted\", \"_codeInterrupted\",\n    \"_duration\", \"_removeCompleted\"\n];\n```"},{"name":"duration","type":"Number","optional":true,"default":"10","description":"action duration, i.e. how much time it takes to complete the action","types":["Number"],"since":null,"text":"duration: Number - (Optional, default 10) action duration, i.e. how much time it takes to complete the action"},{"name":"priority","type":"Number","optional":true,"default":"1000","description":"priority value; actions are arranged in descending order according to this value","types":["Number"],"since":null,"text":"priority: Number - (Optional, default 1000) priority value; actions are arranged in descending order according to this value"},{"name":"removeCompleted","type":"Boolean","optional":true,"default":"true","description":"remove on completion","types":["Boolean"],"since":null,"text":"removeCompleted: Boolean - (Optional, default true) remove on completion"},{"name":"showUnconscious","type":"Boolean","optional":true,"default":"false","description":"show in unconscious state","types":["Boolean"],"since":null,"text":"showUnconscious: Boolean - (Optional, default false) show in unconscious state"},{"name":"showWindow","type":"Boolean","optional":true,"default":"true","description":"show on screen; if false action needs to be selected from action menu to appear on screen","types":["Boolean"],"since":null,"text":"showWindow: Boolean - (Optional, default true) show on screen; if false action needs to be selected from action menu to appear on screen"},{"name":"radius","type":"Number","optional":true,"default":"15","description":"action radius","types":["Number"],"since":"arma3 2.22","text":"radius: Number - (Optional, default 15) action radius"},{"name":"selection","type":"String","optional":true,"default":"\"\"","description":"selection to use","types":["String"],"since":"arma3 2.22","text":"selection: String - (Optional, default \"\") selection to use"},{"name":"memoryPoint","type":"String","optional":true,"default":"\"\"","description":"memory point to use","types":["String"],"since":"arma3 2.22","text":"memoryPoint: String - (Optional, default \"\") memory point to use"}],"returns":{"type":"Number","types":["Number"],"description":"action ID","text":"Number - action ID"}}],"examples":[{"text":"```sqf\n[\n    player,\n    \"Kill\",\n    \"\", \"\",\n    \"true\", \"true\",\n    { hint \"Started!\" },\n    { systemChat str (_this select 3) },\n    { player setDamage 1 },\n    { hint \"Afraid of death?\" },\n    [], 10, nil, true, false\n] call BIS_fnc_holdActionAdd;\n```","code":["[\n\tplayer,\n\t\"Kill\",\n\t\"\", \"\",\n\t\"true\", \"true\",\n\t{ hint \"Started!\" },\n\t{ systemChat str (_this select 3) },\n\t{ player setDamage 1 },\n\t{ hint \"Afraid of death?\" },\n\t[], 10, nil, true, false\n] call BIS_fnc_holdActionAdd;"]},{"text":"```sqf\n// adds the action to every client and JIP, but also adds it when it was already removed. E.g., Laptop has already been hacked by a player\n[\n    _myLaptop,                                                        // Object the action is attached to\n    \"Hack Laptop\",                                                    // Title of the action\n    \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_connect_ca.paa\",    // Idle icon shown on screen\n    \"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_connect_ca.paa\",    // Progress icon shown on screen\n    \"_this distance _target < 3\",                                    // Condition for the action to be shown\n    \"_caller distance _target < 3\",                                    // Condition for the action to progress\n    {},                                                                // Code executed when action starts\n    {},                                                                // Code executed on every progress tick\n    { _this call MY_fnc_hackingCompleted },                            // Code executed on completion\n    {},                                                                // Code executed on interrupted\n    [],                                                                // Arguments passed to the scripts as _this select 3\n    12,                                                                // Action duration in seconds\n    0,                                                                // Priority\n    true,                                                            // Remove on completion\n    false                                                            // Show in unconscious state\n] remoteExec [\"BIS_fnc_holdActionAdd\", 0, _myLaptop];                // MP-compatible implementation\n```","code":["// adds the action to every client and JIP, but also adds it when it was already removed. E.g., Laptop has already been hacked by a player\n[\n\t_myLaptop,\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Object the action is attached to\n\t\"Hack Laptop\",\t\t\t\t\t\t\t\t\t\t\t\t\t// Title of the action\n\t\"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_connect_ca.paa\",\t// Idle icon shown on screen\n\t\"\\a3\\ui_f\\data\\IGUI\\Cfg\\holdactions\\holdAction_connect_ca.paa\",\t// Progress icon shown on screen\n\t\"_this distance _target < 3\",\t\t\t\t\t\t\t\t\t// Condition for the action to be shown\n\t\"_caller distance _target < 3\",\t\t\t\t\t\t\t\t\t// Condition for the action to progress\n\t{},\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Code executed when action starts\n\t{},\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Code executed on every progress tick\n\t{ _this call MY_fnc_hackingCompleted },\t\t\t\t\t\t\t// Code executed on completion\n\t{},\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Code executed on interrupted\n\t[],\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Arguments passed to the scripts as _this select 3\n\t12,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Action duration in seconds\n\t0,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Priority\n\ttrue,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Remove on completion\n\tfalse\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Show in unconscious state\n] remoteExec [\"BIS_fnc_holdActionAdd\", 0, _myLaptop];\t\t\t\t// MP-compatible implementation"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_holdActionRemove","BIS_fnc_holdKey"],"notes":[{"user":"R3vo","date":"2021-04-01T23:44:00Z","text":"A repository with icons:\n\n> I've converted all of the icons from the Tasking Overhaul to follow the Hold Action format, as well as a few others I've made myself. They're available on [GitHub](https://github.com/Kalthramis/Arma3/tree/master/holdAction-TaskType-Icons)."}],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Interaction","Functions","Functions: Local Effect","Introduced with Arma 3 version 1.62"],"docblock":null,"filled_from_docblock":[]}