Hello,
I'm very new to MOOSE.
I have 2 AWACS with escorts for both red and blue, the escorts take off with the AWACS and seem to escort the AWACS aircraft.
When they BINGO they RTB and a new set of escorts spawn. However they take off and just do a lap, land back down, and repeat, they don't fly to the AWACS location to then carry out escort.
I've been trying to work this out but can't seem to find the solution. Reading through the forums I've managed to put the following together.
Been trying to work out the solution myself for a few hours, editing and testing but have failed and I'm at a road block, would really appreciate guidance/advice.
local Spawn_Blue_AWACS_1 = SPAWN:New("Blue-AWACS-1"):InitLimit( 1, 0 ):InitRepeatOnEngineShutDown()
local Spawn_Blue_AWACS_Escort_1 = SPAWN:New("Blue-E3A-Escort"):InitLimit( 2, 0 ):InitRepeatOnEngineShutDown()
local Spawn_Red_AWACS_1 = SPAWN:New("Red-AWACS-1"):InitLimit( 1, 0 ):InitRepeatOnEngineShutDown()
local Spawn_Red_AWACS_Escort_1 = SPAWN:New("Red-E3A-Escort"):InitLimit( 2, 0 ):InitRepeatOnEngineShutDown()
-- SPAWNS
local Blue_AWACS_1 = Spawn_Blue_AWACS_1:Spawn()
local Blue_AWACS_Escort_1 = Spawn_Blue_AWACS_Escort_1:Spawn()
local Red_AWACS_1 = Spawn_Red_AWACS_1:Spawn()
local Red_AWACS_Escort_1 = Spawn_Red_AWACS_Escort_1:Spawn()
-- Vector
local AWACSPointVec3 = POINT_VEC3:New( 100, 0, -100 )
-- Escort Orders
local BlueAWACSEscortDCSTask = Blue_AWACS_Escort_1:TaskEscort( Blue_AWACS_1, AWACSPointVec3:GetVec3(),null,40,"Air")
local RedAWACSEscortDCSTask = Red_AWACS_Escort_1:TaskEscort( Red_AWACS_1, AWACSPointVec3:GetVec3(),null,40,"Air")
Blue_AWACS_Escort_1:PushTask( BlueAWACSEscortDCSTask, 10 )
Red_AWACS_Escort_1:PushTask( RedAWACSEscortDCSTask, 10 )