mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix : First unit of base defenses group was not controllable with Combined Arms.
This commit is contained in:
parent
ab2edc6e59
commit
9c35156db9
@ -66,6 +66,7 @@ class GroundObjectsGenerator:
|
|||||||
if not ground_object.sea_object:
|
if not ground_object.sea_object:
|
||||||
vg = self.m.vehicle_group(side, g.name, utype, position=g.position, heading=g.units[0].heading)
|
vg = self.m.vehicle_group(side, g.name, utype, position=g.position, heading=g.units[0].heading)
|
||||||
vg.units[0].name = self.m.string(g.units[0].name)
|
vg.units[0].name = self.m.string(g.units[0].name)
|
||||||
|
vg.units[0].player_can_drive = True
|
||||||
for i, u in enumerate(g.units):
|
for i, u in enumerate(g.units):
|
||||||
if i > 0:
|
if i > 0:
|
||||||
vehicle = Vehicle(self.m.next_unit_id(), self.m.string(u.name), u.type)
|
vehicle = Vehicle(self.m.next_unit_id(), self.m.string(u.name), u.type)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user