Browse Source

Go back to config ace interact specification

m3ales 4 years ago
parent
commit
ab91f6c80e

+ 1 - 6
addons - Copy/RD501_Main/XEH_postinit.sqf

@@ -46,9 +46,4 @@ rd501_flip_vehicle_validBackpacks = ["RD501_JLTS_Clone_Flip_backpack"];
 call macro_fnc_name(fortify_tool);
 
 // Medical CCP Building
-rd501_medical_ccp_building = "Land_Medevac_house_V1_F";
-
-// Medical CCP Interaciton
-_action = ["rd501_medical_deploy_ccp", "Deploy CCP", "",  { _this call rd501_fnc_deployCcp }, {true}] call ace_interact_menu_fnc_createAction;
-["RD501_resuppy_box_platoon_medical_tent", 0, ["ACE_MainActions"], _action, true] call ace_interact_menu_fnc_addActionToClass;
-["RD501_resuppy_box_small_medical", 0, ["ACE_MainActions"], _action, true] call ace_interact_menu_fnc_addActionToClass;
+rd501_medical_ccp_building = "Land_Medevac_house_V1_F";

+ 13 - 0
addons - Copy/RD501_Vehicles/land/resupply_box/config.cpp

@@ -77,6 +77,19 @@ class CfgVehicles
 		editorSubcategory = macro_editor_cat(resupply)
 		class TransportItems{};
 		class EventHandlers :DefaultEventhandlers{};
+		class ACE_Actions {
+			class ACE_MainActions {
+				displayName = "Deployable CCP";
+				condition = "true";
+				distance = 4;
+				class rd501_deploy_medical_ccp {
+					displayName = "Deploy";
+					statement = "_this call rd501_fnc_deployCcp";
+					icon = "rd501_main\ui_icons\medical_emblem.paa";
+					exceptions[] = {};
+				};
+			};
+		};
 	};
 
 	class macro_new_vehicle(resuppy_box,platoon_ammo): plp_ct_HighSecContBlack