RECOVERYTANKER v0.9.4

This commit is contained in:
Frank
2018-11-25 00:05:31 +01:00
parent 5af235a345
commit c5171e8722
3 changed files with 327 additions and 141 deletions

View File

@@ -533,11 +533,6 @@ function BEACON:ActivateTACAN(Channel, Mode, Message, Bearing, Duration)
return self
end
if self.Positionable:IsAir() then
--TODO: set TACANMode="Y"
self:E({"The POSITIONABLE you want to attach the AA Tacan Beacon is not an aircraft! The BEACON is not emitting.", self.Positionable})
end
-- Beacon type.
local Type=BEACON.Type.TACAN
@@ -548,6 +543,10 @@ function BEACON:ActivateTACAN(Channel, Mode, Message, Bearing, Duration)
local AA=self.Positionable:IsAir()
if AA then
System=BEACON.System.TACAN_TANKER
-- Check if "Y" mode is selected for aircraft.
if Mode~="Y" then
self:E({"WARNING: The POSITIONABLE you want to attach the AA Tacan Beacon is an aircraft: Mode should Y !The BEACON is not emitting.", self.Positionable})
end
end
-- Attached unit.