Hello,
Currently i using this script to create an CAP:
A2ADispatcher:SetSquadron( "Anapa", AIRBASE.Caucasus.Anapa_Vityazevo, { "CAP MIG21", "CAP MIG23", "CAP MIG29", "CAP SU27",}, 20 )
A2ADispatcher:SetSquadronTakeoffInAir( "Anapa" )
A2ADispatcher:SetSquadronTakeoffInAirAltitude( "Anapa", 8000 )
CAPZone = ZONE_POLYGON:New( "CAP Zone", GROUP:FindByName( "CAP Zone" ) )
A2ADispatcher:SetSquadronCap( "Anapa", CAPZone, 4000, 10000, 600, 800, 800, 1200, "BARO" )
A2ADispatcher:SetSquadronCapInterval( "Anapa", 1, 10, 30, 1 )
A2ADispatcher:SetSquadronGrouping( "Anapa", math.random( 1, 4 ) )
A2ADispatcher:SetSquadronFuelThreshold( "Anapa", 0.20 )
it works very well ! i would like to improve it but i can't find the solution.
Currently the CAP spawn in air on Anapa airbase, how to make the planes spawn randomly in an ploygon zone ?
Best regards, take care.
michel.