DCS func setRadioSilentMode

From DCS World Wiki - Hoggitworld.com

Scripting Root

Envrioment: Mission Scripting
Function: setRadioSilentMode Added with: 2.7.5
Member Of: Airbase
Syntax: none Airbase.setRadioSilentMode(Class Self , boolean silent )
Description: Sets the ATC belonging to an airbase object to be silent and unresponsive. This is useful for disabling the award winning ATC behavior in DCS. Note that this DOES NOT remove the airbase from the list. It just makes it unresponsive and silent to any radio calls to it.
   true  : enabled silent mode
   false : disables silent mode


Return Value: none
Return Example: true
Examples: The following will take a group named fleet and iterate the units checking the attributes. If a ship has the HelicopterCarrier attribute it will disable the ATC for that ship.
   local units = Group.getByName('fleet'):getUnits()
   for i = 1, #units do
      if units[i]:hasAttribute('HelicopterCarrier') == true then
           Airbase.getByName(units[i]:getName()):setRadioSilentMode(true)
      end 
   end
Related Functions: Airbase Functions: getCallsign, getUnit, getID, getCategoryEx, getParking, getRunways, getTechObjectPos, getDispatcherTowerPos, getRadioSilentMode, setRadioSilentMode, autoCapture, autoCaptureIsOn, setCoalition, getWarehouse,
Notes: