reactorShutdown = { CPos.New(11,4) } prisonerRelease = { CPos.New(23,46) } plantExplosives = { Cpos.New(31,3) } extractionCell = { CPos.New(0,23) } -- guard spawns countdown timer -- ai behavior InsertionPath = { tanyaSpawn.Location, tanyaInsert.Location } sendPlayer = function() local Tanya = Actor.Create(TanyaType, true, { Location = tanyaSpawn.Location, Owner = Multi0 }) Tanya.Move(tanyaInsert.Location) Player1 = { Tanya } Trigger.OnKilled(Tanya, MissionFailed) reactorCamera = Actor.Create("Camera.GuardsCam", true, { Owner = Multi0, Location = GuardsCamera.Location }) end Trigger.OnEnteredFootprint(reactorShutdown, function(a, id) if a.Owner == Multi0 then Trigger.RemoveFootprintTrigger(id) prisonerCam = Actor.Create("Camera.GuardsCam", true, { Owner = Multi0, Location = GuardsCamera.Location }) c4Cam = Actor.Create("Camera.GuardsCam", true, { Owner = Multi0, Location = GuardsCamera.Location }) end if KevorkianGuard1.IsDead and KevorkianGuard2.IsDead then Utils.Do(GuardsCamera, function(actor) actor.Destroy() end) end end) MissionAccomplished = function() alliedObjective2 = Multi0.AddPrimaryObjective("Destroy The Mutation Chamber") LabBarrier.Kill() Trigger.AfterDelay(DateTime.Seconds(1), function() Multi0.MarkCompletedObjective(alliedObjective1) Trigger.AfterDelay(DateTime.Seconds(8), function() end) end) end WorldLoaded = function() player = Player.GetPlayer("France") england = Player.GetPlayer("England") ussr = Player.GetPlayer("USSR") sendPlayer() Trigger.OnEnteredFootprint(11,4,cutReactorPower) Trigger.OnObjectiveAdded(Multi0, function(p, id) Trigger.AfterDelay(DateTime.Seconds(5), function() Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective") end) end) alliedObjective1 = Multi0.AddPrimaryObjective("Kill Dr. Kevorkian", "Primary Objective:") Trigger.OnObjectiveCompleted(Multi0, function(p, id) Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective completed") end) Trigger.OnObjectiveFailed(Multi0, function(p, id) Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective failed") end) Trigger.OnPlayerLost(Multi0, function() Trigger.AfterDelay(DateTime.Seconds(1), function() Media.PlaySpeechNotification(Multi0, "MissionFailed") end) end) Trigger.OnPlayerWon(Multi0, function() Trigger.AfterDelay(DateTime.Seconds(1), function() Media.PlaySpeechNotification(Multi0, "MissionAccomplished") end) end) end