Standardize usage of AddObjective in RA missions
This commit is contained in:
@@ -242,7 +242,7 @@ SetupTriggers = function()
|
||||
|
||||
Trigger.OnAllKilledOrCaptured(Sams, function()
|
||||
allies1.MarkCompletedObjective(objDestroySamSites)
|
||||
objExtractEinstein = allies1.AddPrimaryObjective("Wait for a helicopter at the LZ and extract Einstein.")
|
||||
objExtractEinstein = allies1.AddObjective("Wait for a helicopter at the LZ and extract Einstein.")
|
||||
Actor.Create("flare", true, { Owner = allies1, Location = ExtractionLZ.Location + CVec.New(1, -1) })
|
||||
Beacon.New(allies1, ExtractionLZ.CenterPosition)
|
||||
Media.PlaySpeechNotification(allies1, "SignalFlareNorth")
|
||||
@@ -271,7 +271,7 @@ SetupTriggers = function()
|
||||
ReassignActors(TownUnits, neutral, allies1)
|
||||
Utils.Do(TownUnits, function(a) a.Stance = "Defend" end)
|
||||
allies1.MarkCompletedObjective(objFindEinstein)
|
||||
objEinsteinSurvival = allies1.AddPrimaryObjective("Keep Einstein alive at all costs.")
|
||||
objEinsteinSurvival = allies1.AddObjective("Keep Einstein alive at all costs.")
|
||||
Trigger.OnKilled(Einstein, function()
|
||||
allies1.MarkFailedObjective(objEinsteinSurvival)
|
||||
end)
|
||||
@@ -365,13 +365,13 @@ WorldLoaded = function()
|
||||
ReassignActors(Map.ActorsInWorld, allies, allies2)
|
||||
SpawnTanya()
|
||||
|
||||
objTanyaMustSurvive = allies1.AddPrimaryObjective("Tanya must survive.")
|
||||
objFindEinstein = allies1.AddPrimaryObjective("Find Einstein's crashed helicopter.")
|
||||
objDestroySamSites = allies1.AddPrimaryObjective("Destroy the SAM sites.")
|
||||
objTanyaMustSurvive = allies1.AddObjective("Tanya must survive.")
|
||||
objFindEinstein = allies1.AddObjective("Find Einstein's crashed helicopter.")
|
||||
objDestroySamSites = allies1.AddObjective("Destroy the SAM sites.")
|
||||
|
||||
objHoldPosition = allies2.AddPrimaryObjective("Hold your position and protect the base.")
|
||||
objLimitLosses = allies2.AddSecondaryObjective("Do not lose more than " .. DeathThreshold[Map.LobbyOption("difficulty")] .. " units.")
|
||||
objCutSovietPower = allies2.AddSecondaryObjective("Take out the Soviet power grid.")
|
||||
objHoldPosition = allies2.AddObjective("Hold your position and protect the base.")
|
||||
objLimitLosses = allies2.AddObjective("Do not lose more than " .. DeathThreshold[Map.LobbyOption("difficulty")] .. " units.", "Secondary", false)
|
||||
objCutSovietPower = allies2.AddObjective("Take out the Soviet power grid.", "Secondary", false)
|
||||
|
||||
SetupTriggers()
|
||||
SetupSoviets()
|
||||
|
||||
Reference in New Issue
Block a user