Adjustments to "Fail mission if impossible to land at beach"
This commit is contained in:
@@ -107,6 +107,7 @@ SendAlliedUnits = function()
|
|||||||
|
|
||||||
Utils.Do(units, function(unit)
|
Utils.Do(units, function(unit)
|
||||||
if unit.Type == "e6" then
|
if unit.Type == "e6" then
|
||||||
|
Engineer = unit
|
||||||
Trigger.OnKilled(unit, LandingPossible)
|
Trigger.OnKilled(unit, LandingPossible)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
@@ -413,7 +414,17 @@ InitTriggers = function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
LstProduced = 0
|
||||||
Trigger.OnKilled(USSRSpen, LandingPossible)
|
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
|
end
|
||||||
|
|
||||||
WorldLoaded = function()
|
WorldLoaded = function()
|
||||||
|
|||||||
Reference in New Issue
Block a user