Advertisement
Guest User

Untitled

a guest
May 15th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 6.25 KB | None | 0 0
  1. span class="re5"> fn_setup_deploy_vehicle = {
  2.   params["_target"];
  3.  
  4.   /* ----- MAIN ----- */
  5.   [_target, 0, ["ACE_MainActions","Deploable vehicles list"]] call ace_interact_menu_fnc_removeActionFromObject;
  6.   _action = ["Deploable vehicles list", "Deploable vehicles list", "", {true}, {true}] call ace_interact_menu_fnc_createAction;
  7.   [_target, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
  8.  
  9.   _actions = [
  10.     ["Tank", "Tank", "", {true;}, {true;}],
  11.     ["Jet", "Jet", "", {true;}, {true;}],
  12.     ["Gunship", "Gunship", "", {true;}, {true;}],
  13.     ["Transport", "Transport", "", {true;}, {true;}],
  14.     ["Vehicle transport", "Vehicle transport", "", {true;}, {true;}],
  15.     ["Utilities", "Utilities", "", {true;}, {true;}],
  16.     ["Drones", "Drones", "", {true;}, {true;}]
  17.   ];
  18.  
  19.   {
  20.     [_target, 0, ["ACE_MainActions","Deploable vehicles list",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
  21.     _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
  22.     [_target, 0, ["ACE_MainActions","Deploable vehicles list"], _action] call ace_interact_menu_fnc_addActionToObject;
  23.   } forEach _actions;
  24.  
  25.   /* ----- TANK ----- */
  26.   _actions = [
  27.     ["Rhino", "Rhino", "", {
  28.       _pos = getPos _target;
  29.       deleteVehicle _target;
  30.       "B_AFV_Wheeled_01_up_cannon_F" createVehicle _pos;
  31.       true;
  32.     }, {true;}],
  33.     ["M1A2SEPv1", "M1A2SEPv1", "", {
  34.       _pos = getPos _target;
  35.       deleteVehicle _target;
  36.       "rhsusf_m1a2sep1tuskiwd_usarmy" createVehicle _pos;
  37.     true;
  38.     }, {true;}]
  39.   ];
  40.  
  41.   {
  42.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Tank",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
  43.     _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
  44.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Tank"], _action] call ace_interact_menu_fnc_addActionToObject;
  45.   } forEach _actions;
  46.  
  47.   /* ----- jet ----- */
  48.   _actions = [
  49.     ["Leopard", "Leopard", "", {
  50.       _pos = getPos _target;
  51.       deleteVehicle _target;
  52.       "I_MBT_03_cannon_F" createVehicle _pos;
  53.       true;
  54.     }, {true;}],
  55.     ["Pandur II", "Pandur II", "", {true;}, {true;}]
  56.   ];
  57.  
  58.   {
  59.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Jet",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
  60.     _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
  61.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Jet"], _action] call ace_interact_menu_fnc_addActionToObject;
  62.   } forEach _actions;
  63.  
  64.   /* ----- gunship ----- */
  65.   _actions = [
  66.     ["Leopard", "Leopard", "", {
  67.       _pos = getPos _target;
  68.       deleteVehicle _target;
  69.       "I_MBT_03_cannon_F" createVehicle _pos;
  70.       true;
  71.     }, {true;}],
  72.     ["Pandur II", "Pandur II", "", {true;}, {true;}]
  73.   ];
  74.  
  75.   {
  76.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Gunship",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
  77.     _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
  78.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Gunship"], _action] call ace_interact_menu_fnc_addActionToObject;
  79.   } forEach _actions;
  80.  
  81.   /* ----- Transport ----- */
  82.   _actions = [
  83.     ["Leopard", "Leopard", "", {
  84.       _pos = getPos _target;
  85.       deleteVehicle _target;
  86.       "I_MBT_03_cannon_F" createVehicle _pos;
  87.       true;
  88.     }, {true;}],
  89.     ["Pandur II", "Pandur II", "", {true;}, {true;}]
  90.   ];
  91.  
  92.   {
  93.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Transport",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
  94.     _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
  95.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Transport"], _action] call ace_interact_menu_fnc_addActionToObject;
  96.   } forEach _actions;
  97.  
  98.   /* ----- Vehicle transport ----- */
  99.   _actions = [
  100.     ["Leopard", "Leopard", "", {
  101.       _pos = getPos _target;
  102.       deleteVehicle _target;
  103.       "I_MBT_03_cannon_F" createVehicle _pos;
  104.       true;
  105.     }, {true;}],
  106.     ["Pandur II", "Pandur II", "", {true;}, {true;}]
  107.   ];
  108.  
  109.   {
  110.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Vehicle transport",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
  111.     _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
  112.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Vehicle transport"], _action] call ace_interact_menu_fnc_addActionToObject;
  113.   } forEach _actions;
  114.  
  115.     /* ----- Utilities----- */
  116.   _actions = [
  117.     ["Rhino", "Rhino", "", {
  118.       _pos = getPos _target;
  119.       deleteVehicle _target;
  120.       "B_AFV_Wheeled_01_up_cannon_F" createVehicle _pos;
  121.       true;
  122.     }, {true;}],
  123.     ["M1A2SEPv1", "M1A2SEPv1", "", {true;}, {true;}]
  124.   ];
  125.  
  126.   {
  127.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Utilities",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
  128.     _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
  129.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Utilities"], _action] call ace_interact_menu_fnc_addActionToObject;
  130.   } forEach _actions;
  131.  
  132.     /* ----- Drones ----- */
  133.   _actions = [
  134.     ["Leopard", "Leopard", "", {
  135.       _pos = getPos _target;
  136.       deleteVehicle _target;
  137.       "I_MBT_03_cannon_F" createVehicle _pos;
  138.       true;
  139.     }, {true;}],
  140.     ["Pandur II", "Pandur II", "", {true;}, {true;}]
  141.   ];
  142.  
  143.   {
  144.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Drones",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
  145.     _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
  146.     [_target, 0, ["ACE_MainActions","Deploable vehicles list","Drones"], _action] call ace_interact_menu_fnc_addActionToObject;
  147.   } forEach _actions;
  148. };
  149. [Tim] spawn fn_setup_deploy_vehicle;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement