Documentation

This commit is contained in:
FlightControl
2016-06-03 12:19:22 +02:00
parent edb265948b
commit 8da59c4395
6 changed files with 67 additions and 58 deletions

View File

@@ -92,7 +92,10 @@
<h2><a id="#(DCSTask)" >Type <code>DCSTask</code></a></h2>
<h2><a id="#(Task)" >Type <code>Task</code></a></h2>
<h3>Field(s)</h3>
<p>A task descriptor (internal structure for DCS World)</p>
<h3>Field(s)</h3>
<dl class="function">
<dt>
@@ -124,6 +127,11 @@
<h2><a id="#(Task.param)" >Type <code>Task.param</code></a></h2>
<h2><a id="#(TaskArray)" >Type <code>TaskArray</code></a></h2>
<p>List of <a href="##(Task)">#Task</a></p>
</div>
</div>

View File

@@ -2204,6 +2204,21 @@
<p>An angle type</p>
<h2><a id="#(AttributeName)" >Type <code>AttributeName</code></a></h2>
<p>AttributeName = string
Each object type may have attributes.</p>
<p>Attributes are enlisted in ./Scripts/Database/db_attributes.Lua.
To know what attributes the object type has, look for the unit type script in sub-directories planes/, helicopter/s, vehicles, navy/ of ./Scripts/Database/ directory. </p>
<h2><a id="#(AttributeNameArray)" >Type <code>AttributeNameArray</code></a></h2>
<p>List of <a href="##(AttributeName)">#AttributeName</a></p>
<h2><a id="#(Azimuth)" >Type <code>Azimuth</code></a></h2>
<p>Azimuth is an angle of rotation around world axis y counter-clockwise.</p>

View File

@@ -200,7 +200,7 @@ If the DCS Group object does not exist or is nil, the GROUP methods will return
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(GROUP).EnRouteTaskEngageTargets">GROUP:EnRouteTaskEngageTargets(Distance, <, Priority, TargetTypes)</a></td>
<td class="name" nowrap="nowrap"><a href="##(GROUP).EnRouteTaskEngageTargets">GROUP:EnRouteTaskEngageTargets(Distance, TargetTypes, Priority)</a></td>
<td class="summary">
<p>(AIR) Engaging targets of defined types.</p>
</td>
@@ -628,7 +628,7 @@ If the DCS Group object does not exist or is nil, the GROUP methods will return
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(GROUP).TaskCombo">GROUP:TaskCombo(<, DCSTasks)</a></td>
<td class="name" nowrap="nowrap"><a href="##(GROUP).TaskCombo">GROUP:TaskCombo(DCSTasks)</a></td>
<td class="summary">
<p>Return a Combo Task taking an array of Tasks</p>
</td>
@@ -658,7 +658,7 @@ If the DCS Group object does not exist or is nil, the GROUP methods will return
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(GROUP).TaskEscort">GROUP:TaskEscort(EscortGroup, PointVec3, LastWaypointIndex, EngagementDistanceMax, <, FollowGroup, EngagementDistance, TargetTypes)</a></td>
<td class="name" nowrap="nowrap"><a href="##(GROUP).TaskEscort">GROUP:TaskEscort(EscortGroup, PointVec3, LastWaypointIndex, EngagementDistanceMax, TargetTypes, FollowGroup, EngagementDistance)</a></td>
<td class="summary">
<p>(AIR) Escort another airborne group.</p>
</td>
@@ -670,7 +670,7 @@ If the DCS Group object does not exist or is nil, the GROUP methods will return
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(GROUP).TaskFireAtPoint">GROUP:TaskFireAtPoint(The, Radius, PointVec2)</a></td>
<td class="name" nowrap="nowrap"><a href="##(GROUP).TaskFireAtPoint">GROUP:TaskFireAtPoint(PointVec2, Radius)</a></td>
<td class="summary">
<p>(GROUND) Fire at a VEC2 point until ammunition is finished.</p>
</td>
@@ -766,7 +766,7 @@ If the DCS Group object does not exist or is nil, the GROUP methods will return
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(GROUP).WayPointExecute">GROUP:WayPointExecute(WayPoint, The, WaitTime)</a></td>
<td class="name" nowrap="nowrap"><a href="##(GROUP).WayPointExecute">GROUP:WayPointExecute(WayPoint, WaitTime)</a></td>
<td class="summary">
<p>Executes the WayPoint plan.</p>
</td>
@@ -1162,7 +1162,7 @@ The DCS task structure.</p>
<dt>
<a id="#(GROUP).EnRouteTaskEngageTargets" >
<strong>GROUP:EnRouteTaskEngageTargets(Distance, <, Priority, TargetTypes)</strong>
<strong>GROUP:EnRouteTaskEngageTargets(Distance, TargetTypes, Priority)</strong>
</a>
</dt>
<dd>
@@ -1179,8 +1179,8 @@ Maximal distance from the target to a route leg. If the target is on a greater d
</li>
<li>
<p><code><em><a href="##(list)">#list</a> &lt; </em></code>:
DCSTypes#AttributeName> TargetTypes Array of target categories allowed to engage. </p>
<p><code><em><a href="DCSTypes.html##(AttributeNameArray)">DCSTypes#AttributeNameArray</a> TargetTypes </em></code>:
Array of target categories allowed to engage. </p>
</li>
<li>
@@ -1188,11 +1188,6 @@ DCSTypes#AttributeName> TargetTypes Array of target categories allowed to engage
<p><code><em>#number Priority </em></code>:
All enroute tasks have the priority parameter. This is a number (less value - higher priority) that determines actions related to what task will be performed first. </p>
</li>
<li>
<p><code><em> TargetTypes </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
@@ -2973,24 +2968,19 @@ The DCS task structure.</p>
<dt>
<a id="#(GROUP).TaskCombo" >
<strong>GROUP:TaskCombo(<, DCSTasks)</strong>
<strong>GROUP:TaskCombo(DCSTasks)</strong>
</a>
</dt>
<dd>
<p>Return a Combo Task taking an array of Tasks</p>
<h3>Parameters</h3>
<h3>Parameter</h3>
<ul>
<li>
<p><code><em><a href="##(list)">#list</a> &lt; </em></code>:
CSTask#Task> DCSTasks</p>
</li>
<li>
<p><code><em> DCSTasks </em></code>: </p>
<p><code><em><a href="DCSTask.html##(TaskArray)">DCSTask#TaskArray</a> DCSTasks </em></code>:
Array of <a href="DCSTask.html##(Task)">DCSTask#Task</a></p>
</li>
</ul>
@@ -3155,7 +3145,7 @@ The DCS task structure</p>
<dt>
<a id="#(GROUP).TaskEscort" >
<strong>GROUP:TaskEscort(EscortGroup, PointVec3, LastWaypointIndex, EngagementDistanceMax, <, FollowGroup, EngagementDistance, TargetTypes)</strong>
<strong>GROUP:TaskEscort(EscortGroup, PointVec3, LastWaypointIndex, EngagementDistanceMax, TargetTypes, FollowGroup, EngagementDistance)</strong>
</a>
</dt>
<dd>
@@ -3194,8 +3184,8 @@ Maximal distance from escorted group to threat. If the threat is already engaged
</li>
<li>
<p><code><em><a href="##(list)">#list</a> &lt; </em></code>:
CSTypes#AttributeName> TargetTypes Array of AttributeName that is contains threat categories allowed to engage. </p>
<p><code><em><a href="DCSTypes.html##(AttributeNameArray)">DCSTypes#AttributeNameArray</a> TargetTypes </em></code>:
Array of AttributeName that is contains threat categories allowed to engage. </p>
</li>
<li>
@@ -3207,11 +3197,6 @@ CSTypes#AttributeName> TargetTypes Array of AttributeName that is contains threa
<p><code><em> EngagementDistance </em></code>: </p>
</li>
<li>
<p><code><em> TargetTypes </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
@@ -3274,7 +3259,7 @@ The DCS task structure.</p>
<dt>
<a id="#(GROUP).TaskFireAtPoint" >
<strong>GROUP:TaskFireAtPoint(The, Radius, PointVec2)</strong>
<strong>GROUP:TaskFireAtPoint(PointVec2, Radius)</strong>
</a>
</dt>
<dd>
@@ -3285,8 +3270,8 @@ The DCS task structure.</p>
<ul>
<li>
<p><code><em><a href="DCSTypes.html##(Vec2)">DCSTypes#Vec2</a> The </em></code>:
point to fire at.</p>
<p><code><em><a href="DCSTypes.html##(Vec2)">DCSTypes#Vec2</a> PointVec2 </em></code>:
The point to fire at.</p>
</li>
<li>
@@ -3294,11 +3279,6 @@ point to fire at.</p>
<p><code><em><a href="DCSTypes.html##(Distance)">DCSTypes#Distance</a> Radius </em></code>:
The radius of the zone to deploy the fire at.</p>
</li>
<li>
<p><code><em> PointVec2 </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
@@ -3799,7 +3779,7 @@ The formation string.</p>
<dt>
<a id="#(GROUP).WayPointExecute" >
<strong>GROUP:WayPointExecute(WayPoint, The, WaitTime)</strong>
<strong>GROUP:WayPointExecute(WayPoint, WaitTime)</strong>
</a>
</dt>
<dd>
@@ -3820,13 +3800,8 @@ The WayPoint from where to execute the mission.</p>
</li>
<li>
<p><code><em><a href="##(WaitTime)">#WaitTime</a> The </em></code>:
amount seconds to wait before initiating the mission.</p>
</li>
<li>
<p><code><em> WaitTime </em></code>: </p>
<p><code><em>#number WaitTime </em></code>:
The amount seconds to wait before initiating the mission.</p>
</li>
</ul>
@@ -3951,10 +3926,6 @@ The waypoint function to be called when the group moves over the waypoint. The w
</dd>
</dl>
<h2><a id="#(WaitTime)" >Type <code>WaitTime</code></a></h2>
<h2><a id="#(list)" >Type <code>list</code></a></h2>
</div>
</div>