mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Progress
This commit is contained in:
@@ -124,18 +124,17 @@ do -- TASK_SEAD
|
|||||||
self:E( { TaskUnit = TaskUnit, Task = Task and Task:GetClassNameAndID() } )
|
self:E( { TaskUnit = TaskUnit, Task = Task and Task:GetClassNameAndID() } )
|
||||||
-- Determine the first Unit from the self.TargetSetUnit
|
-- Determine the first Unit from the self.TargetSetUnit
|
||||||
|
|
||||||
if Task:GetTargetZone() then
|
if Task:GetTargetZone() then
|
||||||
self:__RouteToTargetZone( 0.1 )
|
self:__RouteToTargetZone( 0.1 )
|
||||||
else
|
else
|
||||||
if Task:GetTargetPointVec2() then
|
if Task:GetTargetPointVec2() then
|
||||||
local TargetUnit = Task.TargetSetUnit:GetFirst() -- Wrapper.Unit#UNIT
|
local TargetUnit = Task.TargetSetUnit:GetFirst() -- Wrapper.Unit#UNIT
|
||||||
if TargetUnit then
|
if TargetUnit then
|
||||||
Task:SetTargetPointVec2( TargetUnit:GetPointVec2() )
|
Task:SetTargetPointVec2( TargetUnit:GetPointVec2() )
|
||||||
end
|
|
||||||
self:__RouteToTargetPoint( 0.1 )
|
|
||||||
end
|
end
|
||||||
|
self:__RouteToTargetPoint( 0.1 )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Test
|
--- Test
|
||||||
|
|||||||
Reference in New Issue
Block a user