mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix map objects not being registered when killed
This commit is contained in:
parent
018a4b4718
commit
ce3e358f8c
@ -268,9 +268,7 @@ class GroundObjectGenerator:
|
|||||||
# map objects and add them to the state.json with a DoScript
|
# map objects and add them to the state.json with a DoScript
|
||||||
t = TriggerOnce(Event.NoEvent, f"MapObjectIsDead Trigger {trigger_zone.id}")
|
t = TriggerOnce(Event.NoEvent, f"MapObjectIsDead Trigger {trigger_zone.id}")
|
||||||
t.add_condition(MapObjectIsDead(trigger_zone.id))
|
t.add_condition(MapObjectIsDead(trigger_zone.id))
|
||||||
script_string = String(
|
script_string = String(f'dead_events[#dead_events + 1] = "{trigger_zone.name}"')
|
||||||
f'killed_ground_units[#killed_ground_units + 1] = "{trigger_zone.name}"'
|
|
||||||
)
|
|
||||||
t.actions.append(DoScript(script_string))
|
t.actions.append(DoScript(script_string))
|
||||||
self.m.triggerrules.triggers.append(t)
|
self.m.triggerrules.triggers.append(t)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user