Further improvements by switching to keys.
This commit is contained in:
Frank
2020-07-31 00:09:21 +02:00
parent ba90176bb1
commit da2aa00442
2 changed files with 81 additions and 105 deletions

View File

@@ -147,6 +147,15 @@ function ARMYGROUP:SetSpeedCruise(Speed)
end
--- Get coordinate of the closest road.
-- @param #ARMYGROUP self
-- @param #boolean switch If true or nil, patrol until the end of time. If false, go along the waypoints once and stop.
-- @return #ARMYGROUP self
function ARMYGROUP:GetClosestRoad()
return self:GetCoordinate():GetClosestPointToRoad()
end
--- Add a *scheduled* task.
-- @param #ARMYGROUP self
-- @param Core.Point#COORDINATE Coordinate Coordinate of the target.