Generate ICLS command for carriers

This commit is contained in:
Khopa
2020-05-31 20:00:07 +02:00
parent 9ae34d474b
commit 7ee880cadc
3 changed files with 14 additions and 2 deletions

View File

@@ -103,6 +103,9 @@ class GroundObjectsGenerator:
modeChannel = "X" if not cp.tacanY else "Y"
sg.points[0].tasks.append(ActivateBeaconCommand(channel=cp.tacanN, modechannel=modeChannel, callsign=cp.tacanI, unit_id=sg.units[0].id))
if ground_object.dcs_identifier == "CARRIER" and hasattr(cp, "icls"):
sg.points[0].tasks.append(ActivateICLSCommand(cp.icls, unit_id=sg.units[0].id))
else:
if ground_object.dcs_identifier in warehouse_map:
static_type = warehouse_map[ground_object.dcs_identifier]