From 32e73fa1b314180dc436985a461bf25f5cda7881 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Mon, 2 Oct 2017 22:37:22 -0500 Subject: [PATCH] Fix addLoadPatientActions --- addons/medical_menu/CfgVehicles.hpp | 1 + addons/medical_treatment/XEH_PREP.hpp | 1 + .../functions/fnc_addLoadPatientActions.sqf | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) rename addons/{medical => medical_treatment}/functions/fnc_addLoadPatientActions.sqf (89%) diff --git a/addons/medical_menu/CfgVehicles.hpp b/addons/medical_menu/CfgVehicles.hpp index c24a096be3..5326779cb1 100644 --- a/addons/medical_menu/CfgVehicles.hpp +++ b/addons/medical_menu/CfgVehicles.hpp @@ -96,6 +96,7 @@ class CfgVehicles { statement = QUOTE([ARR_2(_player, _target)] call EFUNC(medical_treatment,actionLoadUnit)); icon = QPATHTOEF(medical,UI\icons\medical_cross.paa); exceptions[] = {"isNotDragging", "isNotCarrying"}; + insertChildren = QUOTE(call DEFUNC(medical_treatment,addLoadPatientActions)); }; class ACE_Medical_UnLoadPatient { displayName = ECSTRING(medical,UnloadPatient); diff --git a/addons/medical_treatment/XEH_PREP.hpp b/addons/medical_treatment/XEH_PREP.hpp index dcd78ab93d..783d3dc1e0 100644 --- a/addons/medical_treatment/XEH_PREP.hpp +++ b/addons/medical_treatment/XEH_PREP.hpp @@ -9,6 +9,7 @@ PREP(actionDiagnose); PREP(actionLoadUnit); PREP(actionPlaceInBodyBag); PREP(actionUnloadUnit); +PREP(addLoadPatientActions); // treaments PREP(canTreat); diff --git a/addons/medical/functions/fnc_addLoadPatientActions.sqf b/addons/medical_treatment/functions/fnc_addLoadPatientActions.sqf similarity index 89% rename from addons/medical/functions/fnc_addLoadPatientActions.sqf rename to addons/medical_treatment/functions/fnc_addLoadPatientActions.sqf index b00ff72472..887057a798 100644 --- a/addons/medical/functions/fnc_addLoadPatientActions.sqf +++ b/addons/medical_treatment/functions/fnc_addLoadPatientActions.sqf @@ -9,7 +9,7 @@ * Child actions * * Example: - * [kevin] call ace_medical_fnc_addLoadPatientActions + * [kevin] call ace_medical_treatment_fnc_addLoadPatientActions * * Public: No */