OPS Cargo

This commit is contained in:
Frank
2021-02-19 00:11:55 +01:00
parent c0401447dd
commit c50f6b72e7
3 changed files with 149 additions and 46 deletions

View File

@@ -1082,10 +1082,15 @@ end
-- @return Ops.OpsGroup#OPSGROUP.Waypoint Waypoint table.
function ARMYGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Formation, Updateroute)
env.info("FF Current waypoint index="..self.currentwp)
env.info("FF Add waypoint after index="..(AfterWaypointWithID or "nil"))
local coordinate=self:_CoordinateFromObject(Coordinate)
-- Set waypoint index.
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
env.info("FF Add waypoint index="..wpnumber)
-- Check if final waypoint is still passed.
if wpnumber>self.currentwp then