Use stored alignment for the F-14A.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1689
This commit is contained in:
Dan Albert
2021-10-30 13:00:36 -07:00
parent 13d52803d6
commit 2699a38f7b
2 changed files with 4 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ from typing import Any, Optional, TYPE_CHECKING
from dcs import Mission
from dcs.flyingunit import FlyingUnit
from dcs.planes import F_14B
from dcs.planes import F_14A_135_GR, F_14B
from dcs.unit import Skill
from dcs.unitgroup import FlyingGroup
@@ -117,6 +117,8 @@ class FlightGroupConfigurator:
laser_codes.append(None)
if unit.unit_type is F_14B:
unit.set_property(F_14B.Properties.INSAlignmentStored.id, True)
elif unit.unit_type is F_14A_135_GR:
unit.set_property(F_14A_135_GR.Properties.INSAlignmentStored.id, True)
def setup_radios(self) -> RadioFrequency:
if self.flight.flight_type in {FlightType.AEWC, FlightType.REFUELING}: