mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
OPS
This commit is contained in:
parent
8dd850d685
commit
0dc26216c2
@ -2454,9 +2454,13 @@ end
|
|||||||
|
|
||||||
--- Set that mission assets are teleported to the mission execution waypoint.
|
--- Set that mission assets are teleported to the mission execution waypoint.
|
||||||
-- @param #AUFTRAG self
|
-- @param #AUFTRAG self
|
||||||
|
-- @param #boolean Switch If `true` or `nil`, teleporting is on. If `false`, teleporting is off.
|
||||||
-- @return #AUFTRAG self
|
-- @return #AUFTRAG self
|
||||||
function AUFTRAG:SetTeleport()
|
function AUFTRAG:SetTeleport(Switch)
|
||||||
self.teleport=true
|
if Switch==nil then
|
||||||
|
Switch=true
|
||||||
|
end
|
||||||
|
self.teleport=Switch
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -1013,7 +1013,7 @@ function OPERATION:onafterPhaseChange(From, Event, To, Phase)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Debug message.
|
-- Debug message.
|
||||||
self:T(self.lid..string.format("Phase change: %s --> %s", oldphase, Phase.name))
|
self:I(self.lid..string.format("Phase change: %s --> %s", oldphase, Phase.name))
|
||||||
|
|
||||||
-- Set currently active phase.
|
-- Set currently active phase.
|
||||||
self.phase=Phase
|
self.phase=Phase
|
||||||
|
|||||||
@ -637,7 +637,9 @@ function AIRBASE:Register(AirbaseName)
|
|||||||
self:_InitRunways()
|
self:_InitRunways()
|
||||||
|
|
||||||
-- Set the active runways based on wind direction.
|
-- Set the active runways based on wind direction.
|
||||||
|
if self.isAirdrome then
|
||||||
self:SetActiveRunway()
|
self:SetActiveRunway()
|
||||||
|
end
|
||||||
|
|
||||||
-- Init parking spots.
|
-- Init parking spots.
|
||||||
self:_InitParkingSpots()
|
self:_InitParkingSpots()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user