mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix error with JTAC compatibility with old saves
This commit is contained in:
parent
6a3b5bbe1d
commit
e16db60d0f
@ -201,9 +201,6 @@ class Operation:
|
|||||||
script = script + "\n"
|
script = script + "\n"
|
||||||
|
|
||||||
smoke = "true"
|
smoke = "true"
|
||||||
print("JTAC")
|
|
||||||
print(self.game.settings.jtac_smoke_on)
|
|
||||||
print(hasattr(self.game, "jtac_smoke_on"))
|
|
||||||
if hasattr(self.game.settings, "jtac_smoke_on"):
|
if hasattr(self.game.settings, "jtac_smoke_on"):
|
||||||
if not self.game.settings.jtac_smoke_on:
|
if not self.game.settings.jtac_smoke_on:
|
||||||
smoke = "false"
|
smoke = "false"
|
||||||
@ -211,8 +208,6 @@ class Operation:
|
|||||||
for jtac in self.game.jtacs:
|
for jtac in self.game.jtacs:
|
||||||
script = script + "\n" + "JTACAutoLase('" + str(jtac[2]) + "', " + str(jtac[1]) + ", " + smoke + ", \"vehicle\")" + "\n"
|
script = script + "\n" + "JTACAutoLase('" + str(jtac[2]) + "', " + str(jtac[1]) + ", " + smoke + ", \"vehicle\")" + "\n"
|
||||||
|
|
||||||
print("\n" + "JTACAutoLase('" + str(jtac[2]) + "', " + str(jtac[1]) + ", " + smoke + ", \"vehicle\")" + "\n")
|
|
||||||
|
|
||||||
load_autolase.add_action(DoScript(String(script)))
|
load_autolase.add_action(DoScript(String(script)))
|
||||||
self.current_mission.triggerrules.triggers.append(load_autolase)
|
self.current_mission.triggerrules.triggers.append(load_autolase)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user