mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
*smaller fixes
This commit is contained in:
parent
b29b9f1b2c
commit
37b1e7366c
@ -443,3 +443,14 @@ function MESSAGE:ToLog()
|
|||||||
|
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Sends a MESSAGE to DCS log file if the given Condition is true.
|
||||||
|
-- @param #MESSAGE self
|
||||||
|
-- @return #MESSAGE self
|
||||||
|
function MESSAGE:ToLogIf( Condition )
|
||||||
|
|
||||||
|
if Condition and Condition == true then
|
||||||
|
env.info(self.MessageCategory .. self.MessageText:gsub( "\n$", "" ):gsub( "\n$", "" ))
|
||||||
|
end
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|||||||
@ -275,7 +275,7 @@ end
|
|||||||
|
|
||||||
--- Initialize as dead.
|
--- Initialize as dead.
|
||||||
-- @param #SPAWNSTATIC self
|
-- @param #SPAWNSTATIC self
|
||||||
-- @param #boolean IsCargo If true, this static is dead.
|
-- @param #boolean IsDead If true, this static is dead.
|
||||||
-- @return #SPAWNSTATIC self
|
-- @return #SPAWNSTATIC self
|
||||||
function SPAWNSTATIC:InitDead(IsDead)
|
function SPAWNSTATIC:InitDead(IsDead)
|
||||||
self.InitStaticDead=IsDead
|
self.InitStaticDead=IsDead
|
||||||
|
|||||||
@ -3690,7 +3690,7 @@ function CTLD:_AddRadioBeacon(Name, Sound, Mhz, Modulation, IsShip, IsDropped)
|
|||||||
local Sound = "l10n/DEFAULT/"..Sound
|
local Sound = "l10n/DEFAULT/"..Sound
|
||||||
trigger.action.radioTransmission(Sound, ZoneVec3, Modulation, false, Frequency, 1000) -- Beacon in MP only runs for 30secs straight
|
trigger.action.radioTransmission(Sound, ZoneVec3, Modulation, false, Frequency, 1000) -- Beacon in MP only runs for 30secs straight
|
||||||
elseif Zone then
|
elseif Zone then
|
||||||
local ZoneCoord = Zone:GetCoordinate()
|
local ZoneCoord = Zone:GetCoordinate(2)
|
||||||
local ZoneVec3 = ZoneCoord:GetVec3()
|
local ZoneVec3 = ZoneCoord:GetVec3()
|
||||||
local Frequency = Mhz * 1000000 -- Freq in Hertz
|
local Frequency = Mhz * 1000000 -- Freq in Hertz
|
||||||
local Sound = "l10n/DEFAULT/"..Sound
|
local Sound = "l10n/DEFAULT/"..Sound
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user