mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update OpsGroup.lua
- Fix for AUFTRAG carried out only after the group has passed all waypoints
This commit is contained in:
@@ -2903,9 +2903,12 @@ function OPSGROUP:RouteToMission(mission, delay)
|
|||||||
if self.isGround and mission.optionFormation then
|
if self.isGround and mission.optionFormation then
|
||||||
formation=mission.optionFormation
|
formation=mission.optionFormation
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- UID of this waypoint.
|
||||||
|
local uid=self:GetWaypointCurrent().uid
|
||||||
|
|
||||||
-- Add waypoint.
|
-- Add waypoint.
|
||||||
local waypoint=self:AddWaypoint(waypointcoord, SpeedToMission, nil, formation, false)
|
local waypoint=self:AddWaypoint(waypointcoord, SpeedToMission, uid, formation, false)
|
||||||
|
|
||||||
-- Add waypoint task. UpdateRoute is called inside.
|
-- Add waypoint task. UpdateRoute is called inside.
|
||||||
local waypointtask=self:AddTaskWaypoint(mission.DCStask, waypoint, mission.name, mission.prio, mission.duration)
|
local waypointtask=self:AddTaskWaypoint(mission.DCStask, waypoint, mission.name, mission.prio, mission.duration)
|
||||||
|
|||||||
Reference in New Issue
Block a user