i get this error
When I click on the radio menu to see TACAN, the error appears
null
2024-05-05 23:40:06.637 ERROR SCRIPTING (Main): Mission script error: [string "tacan = {}..."]:379: Parameter #2 (sound file name) missed
stack traceback:
[C]: ?
[C]: in function 'outSoundForCoalition'
[string "tacan = {}..."]:379: in function <[string "tacan = {}..."]:350>
2024-05-05 23:40:06.660 INFO DXGUI_WIN_ADAPTER (Main): resize main window to [0, 0]
null
function tacan.doListTacan(args)
tacan.GC(true) -- force GC, once.
-- collect all neutral and same (as in args)-side tacans
local theTs = {}
for name, theZone in pairs(tacan.tacanZones) do
if theZone.coa == 0 or theZone.coa == args then
for idx, aTacan in pairs(theZone.spawnedTACANS) do
table.insert(theTs, aTacan)
end
end
end
if #theTs < 1 then
trigger.action.outTextForCoalition(args, "No active TACAN.", 30)
trigger.action.outSoundForCoalition(args, tacan.actionSound)
return
end
local msg = "\nActive TACAN:"
for idx, aTacan in pairs(theTs) do
msg = msg .. "\n - " .. aTacan.activeCallsign .. ": " .. aTacan.activeChan .. aTacan.activeMode
if aTacan.desc then
msg = msg .. " - " .. aTacan.desc
end
end
msg = msg .. "\n"
trigger.action.outTextForCoalition(args, msg, 30)
trigger.action.outSoundForCoalition(args, tacan.actionSound)
end