Adjustments to "Fail mission if impossible to land at beach"

This commit is contained in:
abcdefg30
2015-12-13 21:55:42 +01:00
committed by DArcy Rush
parent c65a15bfb0
commit b3f6085ea0

View File

@@ -107,6 +107,7 @@ SendAlliedUnits = function()
Utils.Do(units, function(unit)
if unit.Type == "e6" then
Engineer = unit
Trigger.OnKilled(unit, LandingPossible)
end
end)
@@ -413,7 +414,17 @@ InitTriggers = function()
end
end)
LstProduced = 0
Trigger.OnKilled(USSRSpen, LandingPossible)
Trigger.OnProduction(USSRSpen, function(self, produced)
if produced.Type == "lst" then
LstProduced = LstProduced + 1
Trigger.OnKilled(produced, function()
LstProduced = LstProduced - 1
LandingPossible()
end)
end
end)
end
WorldLoaded = function()