mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Change iads command unit type
This commit is contained in:
parent
09f92cc5e4
commit
4a4935f165
@ -293,13 +293,13 @@ class GroundObjectGenerator:
|
|||||||
self.m.triggerrules.triggers.append(t)
|
self.m.triggerrules.triggers.append(t)
|
||||||
|
|
||||||
def generate_iads_command_unit(self, unit: SceneryUnit) -> None:
|
def generate_iads_command_unit(self, unit: SceneryUnit) -> None:
|
||||||
# Creates a static Infantry Unit next to a scenery object. This is needed
|
# Creates a static Unit (tyre with red flag) next to a scenery object. This is
|
||||||
# because skynet can not use map objects as Comms, Power or Command and needs a
|
# needed because skynet can not use map objects as Comms, Power or Command and
|
||||||
# "real" unit to function correctly
|
# needs a "real" unit to function correctly
|
||||||
self.m.static_group(
|
self.m.static_group(
|
||||||
country=self.country,
|
country=self.country,
|
||||||
name=unit.unit_name,
|
name=unit.unit_name,
|
||||||
_type=dcs.vehicles.Infantry.Soldier_M4,
|
_type=dcs.statics.Fortification.Black_Tyre_RF,
|
||||||
position=unit.position,
|
position=unit.position,
|
||||||
heading=unit.position.heading.degrees,
|
heading=unit.position.heading.degrees,
|
||||||
dead=not unit.alive, # Also spawn as dead!
|
dead=not unit.alive, # Also spawn as dead!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user