Progress on SEAD

This commit is contained in:
FlightControl 2017-03-03 10:49:38 +01:00
parent a99924d9ed
commit 22fdf034ee
3 changed files with 4 additions and 3 deletions

View File

@ -86,7 +86,7 @@ do -- TASK_SEAD
self:__RouteToRendezVousZone( 0.1 ) self:__RouteToRendezVousZone( 0.1 )
else else
if Task:GetRendezVousPointVec2() then if Task:GetRendezVousPointVec2() then
self:__RouteToPoint( 0.1 ) self:__RouteToRendezVousPoint( 0.1 )
else else
self:__ArriveAtRendezVous( 0.1 ) self:__ArriveAtRendezVous( 0.1 )
end end

View File

@ -110,10 +110,11 @@ local TargetZone = ZONE:New( "Target Zone" )
local SEADTask = TASK_SEAD:New( local SEADTask = TASK_SEAD:New(
Mission, Mission,
SEADSet, SEADSet,
"SEAD Radars Vector 1" "SEAD Radars Vector 1",
TargetSet
) -- Tasking.Task_SEAD#TASK_SEAD ) -- Tasking.Task_SEAD#TASK_SEAD
SEADTask:SetRendezVousPointVec2( TargetZone:GetPointVec2(), 6000 ) -- Done to test the RendezVousPointVec2 mechanism. SEADTask:SetRendezVousPointVec2( RendezVousZone:GetPointVec2(), 6000 ) -- Done to test the RendezVousPointVec2 mechanism.
SEADTask:SetTargetZone( TargetZone ) SEADTask:SetTargetZone( TargetZone )
-- This is now an important part of the Task process definition. -- This is now an important part of the Task process definition.