This commit is contained in:
Sven Van de Velde
2016-05-22 10:30:22 +02:00
parent 7e375c4895
commit b78187aaff
11 changed files with 940 additions and 464 deletions

View File

@@ -282,10 +282,10 @@ end
--- Gets the current Point of the GROUP in VEC3 format.
-- @return #Vec3 Current Vec3 position of the group.
function GROUP:GetPositionVec3()
function GROUP:GetPointVec3()
self:F( self.GroupName )
local GroupPoint = self:GetUnit(1):GetPositionVec3()
local GroupPoint = self:GetUnit(1):GetPointVec3()
self:T( GroupPoint )
return GroupPoint
end
@@ -311,7 +311,7 @@ end
-- @return Unit#UNIT The DCS Unit.
function GROUP:GetUnit( UnitNumber )
self:F( { self.GroupName, UnitNumber } )
return UNIT:New( self.DCSGroup:getUnit( UnitNumber ) )
return UNIT:Find( self.DCSGroup:getUnit( UnitNumber ) )
end
--- Returns the category name of the group.
@@ -934,7 +934,7 @@ end
function GROUP:TaskRouteToVec3( Point, Speed )
self:F( { Point, Speed } )
local GroupPoint = self:GetUnit( 1 ):GetPositionVec3()
local GroupPoint = self:GetUnit( 1 ):GetPointVec3()
local PointFrom = {}
PointFrom.x = GroupPoint.x