Improve repair point location for hull and engine hitpoints

This commit is contained in:
Ivanowicz 2023-11-29 15:56:11 +01:00
parent 011cc6a1cc
commit f7bc73ed35

View File

@ -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];
};