Standardize usage of AddObjective in RA missions

This commit is contained in:
Smittytron
2021-03-27 12:05:09 -05:00
committed by abcdefg30
parent 26fbcf6076
commit 0d3c624bbc
33 changed files with 148 additions and 148 deletions

View File

@@ -270,9 +270,9 @@ WorldLoaded = function()
Media.PlaySpeechNotification(player, "MissionFailed")
end)
sovietObjective = soviets.AddPrimaryObjective("Destroy the village.")
villageObjective = player.AddPrimaryObjective("Save the village.")
beachheadObjective = player.AddPrimaryObjective("Get your MCV to the main island.")
sovietObjective = soviets.AddObjective("Destroy the village.")
villageObjective = player.AddObjective("Save the village.")
beachheadObjective = player.AddObjective("Get your MCV to the main island.")
beachheadTrigger = false
Trigger.OnExitedFootprint(BeachheadTrigger, function(a, id)
@@ -281,7 +281,7 @@ WorldLoaded = function()
Trigger.RemoveFootprintTrigger(id)
player.MarkCompletedObjective(beachheadObjective)
captureObjective = player.AddPrimaryObjective("Locate and capture the enemy's Air Force HQ.")
captureObjective = player.AddObjective("Locate and capture the enemy's Air Force HQ.")
if AirForceHQ.IsDead then
player.MarkFailedObjective(captureObjective)