<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=DCS_command_setFrequencyForUnit</id>
		<title>DCS command setFrequencyForUnit - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=DCS_command_setFrequencyForUnit"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=DCS_command_setFrequencyForUnit&amp;action=history"/>
		<updated>2026-04-24T19:50:19Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=DCS_command_setFrequencyForUnit&amp;diff=14616&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot; {{Template:DCS_tasking  |tName= SetFrequencyForUnit  |vNum= 2.5  |type= Command  |for= Airplanes, Helicopters  |avail= All tasks types  |desc= Changes...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=DCS_command_setFrequencyForUnit&amp;diff=14616&amp;oldid=prev"/>
				<updated>2024-01-12T21:56:43Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; {{Template:DCS_tasking  |tName= SetFrequencyForUnit  |vNum= 2.5  |type= &lt;a href=&quot;/view/DCS_func_setCommand&quot; title=&quot;DCS func setCommand&quot;&gt;Command&lt;/a&gt;  |for= Airplanes, Helicopters  |avail= All tasks types  |desc= Changes...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
{{Template:DCS_tasking&lt;br /&gt;
&lt;br /&gt;
|tName= SetFrequencyForUnit&lt;br /&gt;
&lt;br /&gt;
|vNum= 2.5&lt;br /&gt;
&lt;br /&gt;
|type= [[DCS_func_setCommand|Command]]&lt;br /&gt;
&lt;br /&gt;
|for= Airplanes, Helicopters&lt;br /&gt;
&lt;br /&gt;
|avail= All tasks types&lt;br /&gt;
&lt;br /&gt;
|desc= Changes the broadcasting frequency that a specific AI unit will be using. &lt;br /&gt;
&lt;br /&gt;
The mission editor UI generally displays frequency values in megahertz (MHz) while this command uses hertz for the value. To convert what the radio frequency would typically display in the aircraft simply multiply that value by 1000000. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|form=  This task needs to be in the following format. &lt;br /&gt;
&lt;br /&gt;
 SetFrequency = { &lt;br /&gt;
   id = 'SetFrequencyForUnit', &lt;br /&gt;
   params = { &lt;br /&gt;
     frequency = number, &lt;br /&gt;
     modulation = enum radio.modulation, &lt;br /&gt;
     power = number, &lt;br /&gt;
     unitId = number,&lt;br /&gt;
   } &lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
'''Required parameters''': &lt;br /&gt;
&lt;br /&gt;
frequency: Frequency value in Hz.&lt;br /&gt;
&lt;br /&gt;
modulation: Enum of radio modulation. AM or FM (0 or 1)&lt;br /&gt;
&lt;br /&gt;
power: Power of the radio in watts. 10 is a good default. &lt;br /&gt;
&lt;br /&gt;
unitId = number, &lt;br /&gt;
&lt;br /&gt;
'''Optional Parameters''':&lt;br /&gt;
|enum= {{DCS_enum_radio_modulation}}&lt;br /&gt;
|exam=&lt;br /&gt;
The following will set the frequency of the unit with unitId 2 within someGroup to 131 Mhz AM.&lt;br /&gt;
  local freq = {&lt;br /&gt;
     id = &amp;quot;SetFrequencyForUnit&amp;quot;,&lt;br /&gt;
     params = {&lt;br /&gt;
        power = 10,&lt;br /&gt;
        modulation = 0,&lt;br /&gt;
        frequency = 131000000,&lt;br /&gt;
        unitId = 2,&lt;br /&gt;
     }&lt;br /&gt;
   }&lt;br /&gt;
   Group.getByName(&amp;quot;someGroup&amp;quot;):getController():setCommand(freq)&lt;br /&gt;
|notes= &lt;br /&gt;
&lt;br /&gt;
See article [[Mission Editor: AI Tasking]] for more information on how AI tasking is handled within DCS. &lt;br /&gt;
&lt;br /&gt;
Could also be called via using the [[DCS_command_setFrequency|setFrequency]] command on a '''Unit''' controller. &lt;br /&gt;
&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>