Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="re5"> fn_setup_deploy_vehicle = {
- params["_target"];
- /* ----- MAIN ----- */
- [_target, 0, ["ACE_MainActions","Deploable vehicles list"]] call ace_interact_menu_fnc_removeActionFromObject;
- _action = ["Deploable vehicles list", "Deploable vehicles list", "", {true}, {true}] call ace_interact_menu_fnc_createAction;
- [_target, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
- _actions = [
- ["Tank", "Tank", "", {true;}, {true;}],
- ["Jet", "Jet", "", {true;}, {true;}],
- ["Gunship", "Gunship", "", {true;}, {true;}],
- ["Transport", "Transport", "", {true;}, {true;}],
- ["Vehicle transport", "Vehicle transport", "", {true;}, {true;}],
- ["Utilities", "Utilities", "", {true;}, {true;}],
- ["Drones", "Drones", "", {true;}, {true;}]
- ];
- {
- [_target, 0, ["ACE_MainActions","Deploable vehicles list",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
- _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
- [_target, 0, ["ACE_MainActions","Deploable vehicles list"], _action] call ace_interact_menu_fnc_addActionToObject;
- } forEach _actions;
- /* ----- TANK ----- */
- _actions = [
- ["Rhino", "Rhino", "", {
- _pos = getPos _target;
- deleteVehicle _target;
- "B_AFV_Wheeled_01_up_cannon_F" createVehicle _pos;
- true;
- }, {true;}],
- ["M1A2SEPv1", "M1A2SEPv1", "", {
- _pos = getPos _target;
- deleteVehicle _target;
- "rhsusf_m1a2sep1tuskiwd_usarmy" createVehicle _pos;
- true;
- }, {true;}]
- ];
- {
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Tank",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
- _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Tank"], _action] call ace_interact_menu_fnc_addActionToObject;
- } forEach _actions;
- /* ----- jet ----- */
- _actions = [
- ["Leopard", "Leopard", "", {
- _pos = getPos _target;
- deleteVehicle _target;
- "I_MBT_03_cannon_F" createVehicle _pos;
- true;
- }, {true;}],
- ["Pandur II", "Pandur II", "", {true;}, {true;}]
- ];
- {
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Jet",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
- _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Jet"], _action] call ace_interact_menu_fnc_addActionToObject;
- } forEach _actions;
- /* ----- gunship ----- */
- _actions = [
- ["Leopard", "Leopard", "", {
- _pos = getPos _target;
- deleteVehicle _target;
- "I_MBT_03_cannon_F" createVehicle _pos;
- true;
- }, {true;}],
- ["Pandur II", "Pandur II", "", {true;}, {true;}]
- ];
- {
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Gunship",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
- _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Gunship"], _action] call ace_interact_menu_fnc_addActionToObject;
- } forEach _actions;
- /* ----- Transport ----- */
- _actions = [
- ["Leopard", "Leopard", "", {
- _pos = getPos _target;
- deleteVehicle _target;
- "I_MBT_03_cannon_F" createVehicle _pos;
- true;
- }, {true;}],
- ["Pandur II", "Pandur II", "", {true;}, {true;}]
- ];
- {
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Transport",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
- _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Transport"], _action] call ace_interact_menu_fnc_addActionToObject;
- } forEach _actions;
- /* ----- Vehicle transport ----- */
- _actions = [
- ["Leopard", "Leopard", "", {
- _pos = getPos _target;
- deleteVehicle _target;
- "I_MBT_03_cannon_F" createVehicle _pos;
- true;
- }, {true;}],
- ["Pandur II", "Pandur II", "", {true;}, {true;}]
- ];
- {
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Vehicle transport",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
- _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Vehicle transport"], _action] call ace_interact_menu_fnc_addActionToObject;
- } forEach _actions;
- /* ----- Utilities----- */
- _actions = [
- ["Rhino", "Rhino", "", {
- _pos = getPos _target;
- deleteVehicle _target;
- "B_AFV_Wheeled_01_up_cannon_F" createVehicle _pos;
- true;
- }, {true;}],
- ["M1A2SEPv1", "M1A2SEPv1", "", {true;}, {true;}]
- ];
- {
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Utilities",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
- _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Utilities"], _action] call ace_interact_menu_fnc_addActionToObject;
- } forEach _actions;
- /* ----- Drones ----- */
- _actions = [
- ["Leopard", "Leopard", "", {
- _pos = getPos _target;
- deleteVehicle _target;
- "I_MBT_03_cannon_F" createVehicle _pos;
- true;
- }, {true;}],
- ["Pandur II", "Pandur II", "", {true;}, {true;}]
- ];
- {
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Drones",(_x select 0)]] call ace_interact_menu_fnc_removeActionFromObject;
- _action = [(_x select 0), (_x select 1), (_x select 2), (_x select 3), (_x select 4)] call ace_interact_menu_fnc_createAction;
- [_target, 0, ["ACE_MainActions","Deploable vehicles list","Drones"], _action] call ace_interact_menu_fnc_addActionToObject;
- } forEach _actions;
- };
- [Tim] spawn fn_setup_deploy_vehicle;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement