mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-21 02:31:39 +00:00
#CTLD Frequency Beacons
This commit is contained in:
@@ -3687,13 +3687,13 @@ function CTLD:_AddRadioBeacon(Name, Sound, Mhz, Modulation, IsShip, IsDropped)
|
|||||||
if IsDropped and Zone then
|
if IsDropped and Zone then
|
||||||
local ZoneCoord = Zone
|
local ZoneCoord = Zone
|
||||||
local ZoneVec3 = ZoneCoord:GetVec3()
|
local ZoneVec3 = ZoneCoord:GetVec3()
|
||||||
local Frequency = Mhz * 1000000 -- Freq in Hertz
|
local Frequency = string.format("%09d",Mhz * 1000000) -- Freq in Hertz
|
||||||
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(2)
|
local ZoneCoord = Zone:GetCoordinate(2)
|
||||||
local ZoneVec3 = ZoneCoord:GetVec3()
|
local ZoneVec3 = ZoneCoord:GetVec3()
|
||||||
local Frequency = Mhz * 1000000 -- Freq in Hertz
|
local Frequency = string.format("%09d",Mhz * 1000000) -- Freq in Hertz
|
||||||
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
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user