Jump to content

Recommended Posts

Posted

Hallo

 

Kinda new here and certainly new to the misison editor.

I have worked through the tutorials and documentation for MOOSE but I'm getting kind of lost now.

 

I'm working on a mission where I want to have a Air defense systeem in place. A2A dispatcher is perfect for this.

I tried A2A GCICAP before this and got it working, at least the GCI part; but i would like to use the dispatcher because of the extra choices and direction you can give.

 

Long story short, i can't get either to work anymore lol:megalol:

When I cut out the CAP and bring it back to 1 airfield with GCI it works.

 

Coud someone take a look at my code and tell me what I'm getting wrong here?

I have it loaded though the mission.lua via a trigger at mission start.

I have checked the naming convention of my templates and that late activation is ticked

 

 

Question i have as well is do I work out each squadron in turn such as in the code posted, or do i do it 'bulk'?

 

Hopefully someone can help me back on track,

Regards Breaklight

 

 

MISSION LUA :

 

-- Define a SET_GROUP object that builds a collection of groups that define the EWR network.

-- Here we build the network with all the groups that have a name starting with DF CCCP AWACS and DF CCCP EWR.

DetectionSetGroup = SET_GROUP:New()

DetectionSetGroup:FilterPrefixes( { "DF CCCP AWACS", "DF CCCP EWR" } )

DetectionSetGroup:FilterStart()

 

Detection = DETECTION_AREAS:New( DetectionSetGroup, 30000 )

 

-- Setup the A2A dispatcher, and initialize it.

A2ADispatcher = AI_A2A_DISPATCHER:New( Detection )

 

-- Enable the tactical display panel.

A2ADispatcher:SetTacticalDisplay( true )

 

-- Set the radius to engage any target by airborne friendlies

A2ADispatcher:SetEngageRadius( 50000 )

 

-- Setup the border.

-- Initialize the dispatcher, setting up a border zone. This is a polygon,

-- which takes the waypoints of a late activated group with the name CCCP Border as the boundaries of the border area.

-- Any enemy crossing this border will be engaged.

CCCPBorderZone = ZONE_POLYGON:New( "CCCP Border", GROUP:FindByName( "CCCP Border" ) )

A2ADispatcher:SetBorderZone( CCCPBorderZone )

 

-- Setup the squadrons.

A2ADispatcher:SetSquadron( "Gelendzhik", AIRBASE.Caucasus.Gelendzhik, { "SQ1 RED" }, 2 )

A2ADispatcher:SetSquadronGci( "Gelendzhik", 900, 1200 )

A2ADispatcher:SetSquadronGrouping( "Gelendzhik", 1 )

A2ADispatcher:SetSquadronTakeoff( "Gelendzhik", AI_A2A_DISPATCHER..Takeoff.Cold )

A2ADispatcher:SetSquadronLanding( "Gelendzhik", AI_A2A_Dispatcher.Landing.AtEngineShutdown )

 

A2ADispatcher:SetSquadron( "Krymsk", AIRBASE.Caucasus.Krymsk, { "SQ1 RED" }, 2 )

A2ADispatcher:SetSquadronGci( "Krymsk", 900, 1200 )

A2ADispatcher:SetSquadronGrouping( "Krymsk", 1 )

A2ADispatcher:SetSquadronTakeoff( "Krymsk", AI_A2A_DISPATCHER.Takeoff.Hot )

A2ADispatcher:SetSquadronLanding( "Krymsk", AI_A2A_Dispatcher.Landing.AtEngineShutdown )

 

 

A2ADispatcher:SetSquadron( "Gudauta", AIRBASE.Caucasus.Gudauta, { "SQ1 RED" }, 2 )

A2ADispatcher:SetSquadronGci( "Gudauta", 900, 1200 )

A2ADispatcher:SetSquadronGrouping( "Gudauta", 1 )

A2ADispatcher:SetSquadronTakeoff( "Gudauta", AI_A2A_DISPATCHER..Takeoff.Cold )

A2ADispatcher:SetSquadronLanding( "Gudauta", AI_A2A_Dispatcher.Landing.AtEngineShutdown )

 

A2ADispatcher:SetSquadron( "Mozdok", AIRBASE.Caucasus.Mozdok, { "SQ2 RED" }, 2 )

A2ADispatcher:SetSquadronGci( "Mozdok", 900, 2000 )

A2ADispatcher:SetSquadronGrouping( "Mozdok", 1 )

A2ADispatcher:SetSquadronTakeoff( "Mozdok", AI_A2A_DISPATCHER..Takeoff.Cold )

A2ADispatcher:SetSquadronLanding( "Mozdok", AI_A2A_Dispatcher.Landing.AtEngineShutdown )

 

A2ADispatcher:SetSquadron( "Tbilisi-Lochini", AIRBASE.Caucasus.Tbilisi_Lochini, { "SQ2 RED" }, 2 )

A2ADispatcher:SetSquadronGci( "Tbilisi-Lochini", 900, 2000 )

A2ADispatcher:SetSquadronGrouping( "Tbilisi-Lochini", 1 )

A2ADispatcher:SetSquadronTakeoff( "Tbilisi-Lochini", AI_A2A_DISPATCHER..Takeoff.Cold )

A2ADispatcher:SetSquadronLanding( "Tbilisi-Lochini", AI_A2A_Dispatcher.Landing.AtEngineShutdown )

 

-- CAP Squadron execution.

A2ADispatcher:SetSquadron( "Krasnodar-Center", AIRBASE.Caucasus.Krasnodar_Center, { "SQ3 RED" }, 3 )

CAPZoneWest = ZONE_POLYGON:New( "CAP Zone West", GROUP:FindByName( "CAP Zone West" ) )

A2ADispatcher:SetSquadronCap( "Krasnodar-Center", CAPZoneWest, 4000, 10000, 600, 800, 800, 1200, "BARO" )

A2ADispatcher:SetSquadronCapInterval( "Krasnodar-Center", 1, 30, 600, 1 )

A2ADispatcher:SetSquadronTakeoff( "Krasnodar-Center", AI_A2A_Dispatcher.Takeoff.Cold )

A2ADispatcher:SetSquadronLanding( "Krasnodar-Center", AI_A2A_Dispatcher.Landing.NearAirbase )

 

A2ADispatcher:SetSquadron( "Maykop-Khanskaya", AIRBASE.Caucasus.Maykop_Khanskaya, { "SQ3 RED" }, 3 )

CAPZoneEast = ZONE_POLYGON:New( "CAP Zone East", GROUP:FindByName( "CAP Zone East" ) )

A2ADispatcher:SetSquadronCap( "Maykop-Khanskaya", CAPZoneEast, 4000, 10000, 600, 800, 800, 1200, "BARO" )

A2ADispatcher:SetSquadronCapInterval( "Maykop-Khanskaya", 1, 30, 600, 1 )

A2ADispatcher:SetSquadronTakeoff( "Maykop-Khanskaya", AI_A2A_Dispatcher.Takeoff.Cold )

A2ADispatcher:SetSquadronLanding( "Maykop-Khanskaya", AI_A2A_Dispatcher.Landing.NearAirbase )

 

-- Now Setup the default fuel treshold.

A2ADispatcher:SetDefaultRefuelThreshold( 0.30 ) -- Go RTB when only 30% of fuel remaining in the tank.

 

-- Now Setup the squadron tanker.

A2ADispatcher:SetDefaultTanker( "Tanker1" )

 

END OF MISSION LUA

Posted

Get on the moose discord - they will help you there

ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 

"This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...