mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2026-08-27 15:37:03 +00:00
52 lines
1.7 KiB
Lua
52 lines
1.7 KiB
Lua
-- At startup of the overall mission, we spawn 10 possible escort planes in "Uncontrolled" state.
|
|
|
|
HQ = GROUP:FindByName( "HQ", "Bravo" )
|
|
|
|
CommandCenter = COMMANDCENTER
|
|
:New( HQ, "HQ" )
|
|
|
|
Mission = MISSION
|
|
:New( CommandCenter, "Rescue Operation", "Tactical", "Transport General Mc. Connor!", coalition.side.BLUE )
|
|
|
|
TransportGroups = SET_GROUP:New():FilterCoalitions( "blue" ):FilterPrefixes( "Transport" ):FilterStart()
|
|
TaskDispatcher = TASK_CARGO_DISPATCHER:New( Mission, TransportGroups )
|
|
TaskDispatcher:SetDefaultDeployZone( ZONE:New( "HeadQuarter" ) )
|
|
|
|
local CargoSet = SET_CARGO:New():FilterTypes( "General" ):FilterStart()
|
|
WorkplaceTask = TaskDispatcher:AddTransportTask( "Transport Team", CargoSet, "Rescue the general and transport him to the HeadQuarter (near the airbase Gudauta)." )
|
|
|
|
EscortSpawn = SPAWN:NewWithAlias( "Blue A2G Escort Template" ):InitLimit( 6, 6 )
|
|
EscortSpawn:ParkAtAirbase( AIRBASE:FindByName( AIRBASE.Caucasus.Gudauta ), AIRBASE.TerminalType.OpenMedOrBig )
|
|
|
|
|
|
|
|
local EscortUnit = UNIT:FindByName( "Transport" )
|
|
|
|
Escort = AI_ESCORT_REQUEST:New( EscortUnit, EscortSpawn, AIRBASE:FindByName(AIRBASE.Caucasus.Gudauta), "A2G", "Rescue the engineer from the village Lesselide near the station. Beware of enemy air defenses. Use the escorts wisely." )
|
|
Escort:FormationTrail( 50, 100, 100 )
|
|
|
|
Escort:SetEscortSpawnMission()
|
|
|
|
Escort:MenuJoinUp()
|
|
|
|
Escort:MenuFormationTrail( 50, 50, 0 )
|
|
Escort:MenuFormationLeftLine( 0, 0, 50, 50 )
|
|
Escort:MenuFormationRightLine( 0, 0, 50, 50 )
|
|
|
|
|
|
Escort:MenuHoldAtEscortPosition( 30, 0 )
|
|
Escort:MenuHoldAtEscortPosition( 100, 0 )
|
|
Escort:MenuHoldAtLeaderPosition( 30, 0 )
|
|
Escort:MenuHoldAtLeaderPosition( 100, 0 )
|
|
|
|
Escort:MenuFlare()
|
|
Escort:MenuSmoke()
|
|
|
|
Escort:MenuTargets( 60 )
|
|
Escort:MenuROE()
|
|
Escort:MenuROT()
|
|
|
|
Escort:__Start( 5 )
|
|
|
|
|