mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Progress on Route
This commit is contained in:
@@ -588,7 +588,7 @@ function CONTROLLABLE:TaskOrbitCircle( Altitude, Speed )
|
||||
local DCSControllable = self:GetDCSObject()
|
||||
|
||||
if DCSControllable then
|
||||
local ControllablePoint = self:GetPointVec2()
|
||||
local ControllablePoint = self:GetVec2()
|
||||
return self:TaskOrbitCircleAtVec2( ControllablePoint, Altitude, Speed )
|
||||
end
|
||||
|
||||
@@ -765,7 +765,7 @@ function CONTROLLABLE:TaskLandAtZone( Zone, Duration, RandomPoint )
|
||||
if RandomPoint then
|
||||
Point = Zone:GetRandomVec2()
|
||||
else
|
||||
Point = Zone:GetPointVec2()
|
||||
Point = Zone:GetVec2()
|
||||
end
|
||||
|
||||
local DCSTask = self:TaskLandAtVec2( Point, Duration )
|
||||
@@ -1365,7 +1365,7 @@ end
|
||||
function CONTROLLABLE:TaskRouteToVec2( Point, Speed )
|
||||
self:F2( { Point, Speed } )
|
||||
|
||||
local ControllablePoint = self:GetUnit( 1 ):GetPointVec2()
|
||||
local ControllablePoint = self:GetUnit( 1 ):GetVec2()
|
||||
|
||||
local PointFrom = {}
|
||||
PointFrom.x = ControllablePoint.x
|
||||
@@ -1504,7 +1504,7 @@ function CONTROLLABLE:TaskRouteToZone( Zone, Randomize, Speed, Formation )
|
||||
|
||||
if DCSControllable then
|
||||
|
||||
local ControllablePoint = self:GetPointVec2()
|
||||
local ControllablePoint = self:GetVec2()
|
||||
|
||||
local PointFrom = {}
|
||||
PointFrom.x = ControllablePoint.x
|
||||
@@ -1520,7 +1520,7 @@ function CONTROLLABLE:TaskRouteToZone( Zone, Randomize, Speed, Formation )
|
||||
if Randomize then
|
||||
ZonePoint = Zone:GetRandomVec2()
|
||||
else
|
||||
ZonePoint = Zone:GetPointVec2()
|
||||
ZonePoint = Zone:GetVec2()
|
||||
end
|
||||
|
||||
PointTo.x = ZonePoint.x
|
||||
@@ -1602,7 +1602,7 @@ function CONTROLLABLE:RouteReturnToAirbase( ReturnAirbase, Speed )
|
||||
|
||||
if DCSControllable then
|
||||
|
||||
local ControllablePoint = self:GetPointVec2()
|
||||
local ControllablePoint = self:GetVec2()
|
||||
local ControllableVelocity = self:GetMaxVelocity()
|
||||
|
||||
local PointFrom = {}
|
||||
@@ -1614,7 +1614,7 @@ function CONTROLLABLE:RouteReturnToAirbase( ReturnAirbase, Speed )
|
||||
|
||||
|
||||
local PointTo = {}
|
||||
local AirbasePoint = ReturnAirbase:GetPointVec2()
|
||||
local AirbasePoint = ReturnAirbase:GetVec2()
|
||||
|
||||
PointTo.x = AirbasePoint.x
|
||||
PointTo.y = AirbasePoint.y
|
||||
|
||||
Reference in New Issue
Block a user