Fix repair point location for rotors

This commit is contained in:
Ivanowicz 2023-10-25 15:31:45 +02:00
parent eefa53221d
commit c4464697e4

View File

@ -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 {