From f7bc73ed352150bec6fb1a05fdc7cf40ff0a6045 Mon Sep 17 00:00:00 2001 From: Ivanowicz Date: Wed, 29 Nov 2023 15:56:11 +0100 Subject: [PATCH] Improve repair point location for hull and engine hitpoints --- addons/repair/functions/fnc_addRepairActions.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/repair/functions/fnc_addRepairActions.sqf b/addons/repair/functions/fnc_addRepairActions.sqf index 437332d04f..c51d387727 100644 --- a/addons/repair/functions/fnc_addRepairActions.sqf +++ b/addons/repair/functions/fnc_addRepairActions.sqf @@ -119,7 +119,7 @@ private _turretPaths = ((fullCrew [_vehicle, "gunner", true]) + (fullCrew [_vehi // Find the action position private _position = compile format ["_target selectionPosition ['%1', 'HitPoints'];", _selection]; - if ("rotor" in _hitpoint) then { + if ("rotor" in _hitpoint || "hull" in _hitpoint || "engine" in _hitpoint) then { _position = compile format ["_target selectionPosition ['%1', 'HitPoints', 'AveragePoint'];", _selection]; };