Soviet07 fix game over and add healthcrate
-Fix game over -Add healthcrate
This commit is contained in:
@@ -238,8 +238,12 @@ IntroSequence = function()
|
||||
Media.PlaySpeechNotification(player, "TimerStarted")
|
||||
timerStarted = true
|
||||
end)
|
||||
|
||||
-- Trigger a game over if the player lost all human units before the security system has been deactivated
|
||||
Trigger.OnAllKilled(StartingUnits, function()
|
||||
enemy.MarkCompletedObjective(alliedObjective)
|
||||
if not controlCenterTrigger then
|
||||
enemy.MarkCompletedObjective(alliedObjective)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
@@ -299,4 +303,4 @@ Tick = function()
|
||||
UserInterface.SetMissionText("")
|
||||
enemy.MarkCompletedObjective(alliedObjective)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user