<?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_task_strafing</id>
		<title>DCS task strafing - 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_task_strafing"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=DCS_task_strafing&amp;action=history"/>
		<updated>2026-05-17T04:11:27Z</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_task_strafing&amp;diff=14591&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Template:DCS_tasking  |tName= Strafing  |vNum= 2.9.0  |type= Main task  |for= Airplanes, Helicopters  |desc= Assigns a point on the ground for which the AI will do a strafin...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=DCS_task_strafing&amp;diff=14591&amp;oldid=prev"/>
				<updated>2023-10-20T01:25:23Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Template:DCS_tasking  |tName= Strafing  |vNum= 2.9.0  |type= Main task  |for= Airplanes, Helicopters  |desc= Assigns a point on the ground for which the AI will do a strafin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:DCS_tasking&lt;br /&gt;
&lt;br /&gt;
|tName= Strafing&lt;br /&gt;
&lt;br /&gt;
|vNum= 2.9.0&lt;br /&gt;
&lt;br /&gt;
|type= Main task&lt;br /&gt;
&lt;br /&gt;
|for= Airplanes, Helicopters&lt;br /&gt;
&lt;br /&gt;
|desc= Assigns a point on the ground for which the AI will do a strafing run with guns or rockets. &lt;br /&gt;
&lt;br /&gt;
|avail=&lt;br /&gt;
&lt;br /&gt;
|form=  This task needs to be in the following format. &lt;br /&gt;
&lt;br /&gt;
 Strafing= { &lt;br /&gt;
  id = 'Strafing', &lt;br /&gt;
  params = { &lt;br /&gt;
    point = Vec2,&lt;br /&gt;
    weaponType = number, &lt;br /&gt;
    expend = enum AI.Task.WeaponExpend,&lt;br /&gt;
    attackQty = number, &lt;br /&gt;
    attackQtyLimit = boolean,&lt;br /&gt;
    direction = Azimuth, &lt;br /&gt;
    directionEnabled = boolean,&lt;br /&gt;
    groupAttack = boolean, &lt;br /&gt;
    length = number, &lt;br /&gt;
  } &lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
'''Required parameters''': &lt;br /&gt;
point: vec2 coordinate of the target. Can also be an x and y values directly in params table.&lt;br /&gt;
&lt;br /&gt;
attackQty: Number of times the group will attack if the target. &lt;br /&gt;
&lt;br /&gt;
'''Optional Parameters''':&lt;br /&gt;
All other variables are optional. Some variables require other entries, for example the boolean values require the corresponding value if the boolean is true. &lt;br /&gt;
&lt;br /&gt;
expend: Enum that defines how much munitions the AI will expend per attack run. &lt;br /&gt;
&lt;br /&gt;
attackQtyLimit: boolean that defines whether or not the attackQty value will be used. &lt;br /&gt;
&lt;br /&gt;
groupAttack: If true then each aircraft in the group will attack the point.&lt;br /&gt;
&lt;br /&gt;
length: The total length of the strafing target. &lt;br /&gt;
&lt;br /&gt;
|enum= weaponType is a number associated with a correspond [[DCS_enum_weapon_flag|weapons flags]]&lt;br /&gt;
&lt;br /&gt;
{{Template:DCS_enum_AI_expend_list}}&lt;br /&gt;
&lt;br /&gt;
|exam= The following will make the group &amp;quot;dakka&amp;quot; do a strafing run on a target with a quarter of its rockets.&lt;br /&gt;
&lt;br /&gt;
  local target = {}&lt;br /&gt;
  local zone = trigger.misc.getZone(&amp;quot;targetPractice&amp;quot;)&lt;br /&gt;
  target.point = {x = zone.point.x, y = zone.point.z}&lt;br /&gt;
  target.expend = &amp;quot;Quarter&amp;quot;&lt;br /&gt;
  target.weaponType = 30720&lt;br /&gt;
  target.attackQty = 1&lt;br /&gt;
  local engage = {id = 'Strafing', params = target}&lt;br /&gt;
  Group.getByName('dakka'):getController():setTask(engage)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|notes= See article [[Mission Editor: AI Tasking]] for more information on how AI tasking is handled within DCS. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category:Aircraft Task|Strafing]]&lt;br /&gt;
[[Category:Helicopter Task|Strafing]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>