mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Generate unit_id for helipads
fixes mission scripting error (1748)
This commit is contained in:
parent
9e92c87351
commit
676a25631b
@ -11,6 +11,7 @@ Saves from 5.x are not compatible with 6.0.
|
||||
## Fixes
|
||||
|
||||
* **[Mission Generator]** Fixed incorrect radio specification for the AN/ARC-222.
|
||||
* **[Mission Generator]** Fixed mission scripting error when using a dedicated server.
|
||||
|
||||
# 5.0.0
|
||||
|
||||
|
||||
@ -600,7 +600,7 @@ class HelipadGenerator:
|
||||
for i, helipad in enumerate(self.cp.helipads):
|
||||
name = self.cp.name + "_helipad_" + str(i)
|
||||
logging.info("Generating helipad static : " + name)
|
||||
pad = InvisibleFARP(name=name)
|
||||
pad = InvisibleFARP(unit_id=self.m.next_unit_id(), name=name)
|
||||
pad.position = Point(helipad.x, helipad.y)
|
||||
pad.heading = helipad.heading.degrees
|
||||
sg = unitgroup.StaticGroup(self.m.next_group_id(), name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user