Rescue.InsertEnemiesRescueMission /* ------------------- PLAYER and squadron ------------------- */ Plane 0 Load planes/Boeing_CH47_Chinook/1.ini 0.0 700.0 0.0 0.0 1 Plane 0 SetActive 1 Plane 1 Load planes/cobra/1.ini 400.0 700.0 0.0 0.0 1 Plane 1 SetActive 1 Plane 2 Load planes/cobra/1.ini 0.0 150.0 0.0 0.0 1 Plane 2 SetActive 0 Player.ReloadSpecial planes/Boeing_CH47_Chinook/1.ini 0.0 0.0 0.0 0.0 Player.SpecialWaveEnable Player.ResetWave Player.AddToWave 0 Player.AddToWave 1 Player.SetToNextPlaneInWave Player.PlanesWasChanged Player.AllowSwitch 1 Player.CannotRetireEnable Var DefineFloat Timer Var DefineFloat MissionState Var DefineBool rescuedPilots DebriefingIndex 11802 /* ------------------------------------------------------------------------------ BEGIN --------------------------------------------------------------------------------- */ BeginScript if Time == 1 endif { MusicPlayActionSlow Var Timer = 0 ; Var MissionState = 1 ; Var rescuedPilots = FALSE ; Rescue.GenerateRescuePoints TimeLimitHide } if Time == 5 endif { Message.DialogTime 180 180 0 6 Objective.Add Objective1 11800 0 TimeLimitShow 300 } if Time > 1 && Rescue.CheckRescuePoints == TRUE && Var rescuedPilots == FALSE && ActualPlaneInWawe == 0 endif { Var rescuedPilots = TRUE ; } if Var rescuedPilots == TRUE endif { Var Timer += 1 ; } if Var rescuedPilots == TRUE && Var Timer == 2 && Var MissionState == 1 endif { ShowPilotRescuedMessage } if Var rescuedPilots == TRUE && Var Timer == 5 && Var MissionState == 1 endif { Objective.Completed Objective1 } if Time == 305 && Var MissionState == 1 endif { MissionLeave 5 Var MissionState = 100 ; MissionFailed } if Var rescuedPilots == TRUE && Var Timer > 10 && Var MissionState == 1 endif { HidePilotRescuedMessage Var MissionState = 100 ; MissionCompleted MissionLeave 5 DebriefingIndex 11801 } /* ------------------------------------------------------------------------------ END --------------------------------------------------------------------------------- */ EndScript