SetRadarMode

Set radar operating mode

Usage: Used in 6 task(s)

Lua Implementation

-- Set Radar Mode
function execute(params)
    local radarSystem = this:getSystem("Radar")
    local mode = params.mode -- "search", "track", "TWS", "STT"

    if radarSystem then
        radarSystem:setMode(mode)
        return true
    end
    return false
end