DCS func setRadioSilentMode

From DCS World Wiki - Hoggitworld.com
Revision as of 22:47, 10 August 2021 by Grimes (talk | contribs) (Created page with "{{Template:dcs_funcs |fName= setRadioSilentMode |vNum= 2.7.5 |par1= Airbase |par2= |par3= |par4= |desc= Sets the ATC belonging to an airbase obj...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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: