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:
parent
eeeab86952
commit
21a93652cd
@ -2903,9 +2903,12 @@ function OPSGROUP:RouteToMission(mission, delay)
|
||||
if self.isGround and mission.optionFormation then
|
||||
formation=mission.optionFormation
|
||||
end
|
||||
|
||||
-- UID of this waypoint.
|
||||
local uid=self:GetWaypointCurrent().uid
|
||||
|
||||
-- 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.
|
||||
local waypointtask=self:AddTaskWaypoint(mission.DCStask, waypoint, mission.name, mission.prio, mission.duration)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user