Advertisement
icdb

[ArmA3] batch ACE addActionToClass

Dec 30th, 2017
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.91 KB | None | 0 0
  1. {
  2.     [typeOf _x, 0, ["ACE_MainActions", "testmenu"]] call ace_interact_menu_fnc_removeActionFromClass;
  3. } forEach Vehicles;
  4. _action = ["testmenu", "Test", "", {true}, {true}] call ace_interact_menu_fnc_createAction;
  5. ["AllVehicles", 0, ["ACE_MainActions"], _action, true] call ace_interact_menu_fnc_addActionToClass;
  6.  
  7.  
  8. _actions = [
  9.     ["test1", "Test 1", "",
  10.         {
  11.             true;
  12.         },
  13.         {
  14.             true;
  15.         }
  16.     ],
  17.     ["test2", "Test 2", "",
  18.         {
  19.             true;
  20.         }, {
  21.             true;
  22.         }
  23.     ],
  24.     ["test3", "Test 3", "",
  25.         {
  26.             true;
  27.         }, {
  28.             true;
  29.         }
  30.     ]
  31. ];
  32.  
  33. {
  34.     ["AllVehicles", 0, ["ACE_MainActions","testmenu",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromClass;
  35.     _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
  36.     ["AllVehicles", 0, ["ACE_MainActions","testmenu"], _action, true] call ace_interact_menu_fnc_addActionToClass;
  37. } forEach _actions;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement