Update Auftrag.lua

This commit is contained in:
Frank
2026-03-08 23:06:12 +01:00
parent f93bf6f0e7
commit 3324656516
+2 -2
View File
@@ -1377,10 +1377,10 @@ function AUFTRAG:NewAWACS(Coordinate, Altitude, Speed, Heading, Leg)
-- Create ORBIT first. -- Create ORBIT first.
local mission=nil --Ops.Auftrag#AUFTRAG local mission=nil --Ops.Auftrag#AUFTRAG
if BASE:IsInstanceOf("COORDINATE") then if Coordinate:IsInstanceOf("COORDINATE") then
-- Racetrack at a given coordinate -- Racetrack at a given coordinate
mission=AUFTRAG:NewORBIT_RACETRACK(Coordinate, Altitude, Speed, Heading, Leg) mission=AUFTRAG:NewORBIT_RACETRACK(Coordinate, Altitude, Speed, Heading, Leg)
elseif BASE:IsInstanceOf("UNIT") then elseif Coordinate:IsInstanceOf("UNIT") then
-- Racetrack wrt a given (moving) unit (e.g. a carrier) -- Racetrack wrt a given (moving) unit (e.g. a carrier)
local OffsetVec2={r=6, phi=180} local OffsetVec2={r=6, phi=180}
mission=AUFTRAG:NewORBIT_GROUP(Coordinate, Altitude, Speed, Leg, Heading, OffsetVec2) mission=AUFTRAG:NewORBIT_GROUP(Coordinate, Altitude, Speed, Leg, Heading, OffsetVec2)