Amarok_73 Posted October 12, 2021 Posted October 12, 2021 Hello, I have such a script, where I'd like to add the entries for carrier based squadron: function fGCICAPBlue() env.info(">>>> Blue GCICAP starting...") BlueDetectionSetGroup = SET_GROUP:New() :FilterPrefixes({"BLUE EWR", "AWACS Blue", "BEWR"}) :FilterStart() BlueDetection = DETECTION_AREAS:New(BlueDetectionSetGroup, 30000) BlueBorderZone = ZONE_POLYGON:New("Blue Border", GROUP:FindByName("BlueBorder")) BlueCAPZone001 = ZONE_POLYGON:New("Blue CAP Zone 001", GROUP:FindByName("BlueCAPZone001")) BlueCAPZone002 = ZONE_POLYGON:New("Blue CAP Zone 002", GROUP:FindByName("BlueCAPZone002")) BlueCAPZone003 = ZONE_POLYGON:New("Blue CAP Zone 003", GROUP:FindByName("BlueCAPZone003")) --BlueCAPZone004 = ZONE_POLYGON:New("Blue CAP Zone 004", GROUP:FindByName("BlueCAPZone004")) BlueA2ADispatcher = AI_A2A_DISPATCHER:New( BlueDetection ) :SetBorderZone(BlueBorderZone) :SetDefaultGrouping(2) :SetEngageRadius(200000) :SetDisengageRadius(150000) :SetTacticalDisplay(false) :SetDefaultTakeoffFromParkingHot() :SetDefaultLandingAtEngineShutdown() :SetDefaultFuelThreshold(0.30) :SetDefaultDamageThreshold(0.40) :SetIntercept(450) BlueA2ADispatcher:SetSquadron( "Fujairah", AIRBASE.PersianGulf.Fujairah_Intl, { "BlueGCICAP01" } ) BlueA2ADispatcher:SetSquadron( "Sharjah", AIRBASE.PersianGulf.Sharjah_Intl, { "BlueGCICAP02" } ) BlueA2ADispatcher:SetSquadron( "Khasab", AIRBASE.PersianGulf.Khasab, { "BlueGCICAP03" } ) BlueA2ADispatcher:SetSquadronGci( "Fujairah", 600, 1200 ) BlueA2ADispatcher:SetSquadronGci( "Sharjah", 600, 1200 ) BlueA2ADispatcher:SetSquadronGci( "Khasab", 600, 1200 ) BlueA2ADispatcher:SetSquadronCap("Fujairah", BlueCAPZone001, 3000, 10000, 500, 800, 500, 1200, "BARO") BlueA2ADispatcher:SetSquadronCap("Sharjah", BlueCAPZone002, 3000, 10000, 500, 800, 500, 1200, "BARO") BlueA2ADispatcher:SetSquadronCap("Khasab", BlueCAPZone003, 3000, 10000, 500, 800, 500, 1200, "BARO") BlueA2ADispatcher:SetSquadronTakeoffFromParkingHot("Fujairah") BlueA2ADispatcher:SetSquadronTakeoffFromParkingHot("Sharjah") BlueA2ADispatcher:SetSquadronTakeoffFromParkingHot("Khasab") BlueA2ADispatcher:SetSquadronTanker("Fujairah", "TKR130") BlueA2ADispatcher:SetSquadronTanker("Sharjah", "TKR135") -- BlueA2ADispatcher:SetSquadronVisible("Fujairah") -- BlueA2ADispatcher:SetSquadronVisible("Sharjah") -- BlueA2ADispatcher:SetSquadronVisible("Khasab") --BlueA2ADispatcher:Start() env.info(">>>> Blue GCICAP started.") end fGCICAPBlue() Can anyone tell me, how it should looks like to make it possible? On carrier I've two groups, single unit each, both late activated that I'd like to have as the Fleet Defenders that will depart as soon as the Dispatcher will decide that there's enemy that should be redirected back to where it came from. Natural Born Kamikaze ------------------------- AMD Ryzen 5 3600, AMD Fatal1ty B450 Gaming K4, AMD Radeon RX 5700 XT, 32 GB RAM Corsair Vengeance LPX, PSU Modecom Volcano 750W, Virpil Constellation Alpha Prime on Moza AB9 base, Virpil MongoosT-50CM3 Throttle, Turtle Beach VelocityOne Rudder.
Zeagle Posted October 17, 2021 Posted October 17, 2021 Check the MOOSE_Missions example AID-A2A-061 -- Setup the squadrons. A2ADispatcher:SetSquadron( "Kuznetsov", "Kuznetsov", { "SQ CCCP SU-33" }, 20 ) -- Setup the overhead A2ADispatcher:SetSquadronOverhead( "Kuznetsov", 1.2 ) -- Setup the Grouping A2ADispatcher:SetSquadronGrouping( "Kuznetsov", 1 ) -- Setup the Takeoff methods A2ADispatcher:SetSquadronTakeoff( "Kuznetsov", AI_A2A_DISPATCHER.Takeoff.Runway ) -- Setup the Landing methods A2ADispatcher:SetSquadronLandingAtRunway( "Kuznetsov" ) AID-A2A-061 - Takeoff From Ship Runway Test.miz
Recommended Posts