From c4464697e490eee4cbd9ca57bd1e1682961ce522 Mon Sep 17 00:00:00 2001 From: Ivanowicz Date: Wed, 25 Oct 2023 15:31:45 +0200 Subject: [PATCH] Fix repair point location for rotors --- addons/repair/functions/fnc_addRepairActions.sqf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/repair/functions/fnc_addRepairActions.sqf b/addons/repair/functions/fnc_addRepairActions.sqf index d071f577a6..03c6ec79a6 100644 --- a/addons/repair/functions/fnc_addRepairActions.sqf +++ b/addons/repair/functions/fnc_addRepairActions.sqf @@ -119,6 +119,10 @@ 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 { + _position = compile format ["_target selectionPosition ['%1', 'HitPoints', 'AveragePoint'];", _selection]; + }; + { _x params ["_hit", "_pos"]; if (_hitpoint == _hit) exitWith {