Fix the "Secure the convoy's path" objective being completed without securing a path

This commit is contained in:
abcdefg30
2017-10-06 12:28:51 +02:00
committed by reaperrr
parent 817449c018
commit 025d5c8d05

View File

@@ -82,7 +82,10 @@ RunInitialActivities = function()
Harvester.FindResources()
Trigger.OnKilled(Harvester, function() HarvesterKilled = true end)
Trigger.OnAllKilled(PathGuards, SendTrucks)
Trigger.OnAllKilled(PathGuards, function()
player.MarkCompletedObjective(SecureObjective)
SendTrucks()
end)
if InfantryTypes then
Trigger.AfterDelay(InfantryDelay, InfantryProduction)
@@ -202,7 +205,6 @@ SendTrucks = function()
ticked = 0
ConvoyObjective = player.AddPrimaryObjective("Escort the convoy.")
player.MarkCompletedObjective(SecureObjective)
Media.PlaySpeechNotification(player, "ConvoyApproaching")
Trigger.AfterDelay(DateTime.Seconds(3), function()