mirror of
https://github.com/FlightControl-Master/MOOSE_DOCS.git
synced 2026-08-11 19:56:18 +00:00
Auto commit by GitHub Actions Workflow
This commit is contained in:
@@ -3071,6 +3071,12 @@ use negative idp for rounding ahead of decimal place, positive for rounding afte
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(UTILS).UniqueName">UTILS.UniqueName(base)</a></p></td>
|
||||
<td class="summary w3-half w3-container" style="word-wrap: break-word">
|
||||
<p>Makes a string semi-unique by attaching a random number between 0 and 1 million to it</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="w3-border">
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(UTILS).ValidateAndRepositionGroundUnits">UTILS.ValidateAndRepositionGroundUnits(table, Anchor, MaxRadius, Spacing, Positions)</a></p></td>
|
||||
<td class="summary w3-half w3-container" style="word-wrap: break-word">
|
||||
<p>This function uses Disposition and other fallback logic to find better ground positions for ground units.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="w3-border">
|
||||
@@ -12898,6 +12904,94 @@ static, shape_name is optional. Also, livery_id is optional, but is applied to t
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="w3-card-2 w3-padding-small w3-margin-top">
|
||||
|
||||
<div class="w3-theme-l2">
|
||||
<h2><a id="#(UTILS).ValidateAndRepositionGroundUnits" ><strong>UTILS.ValidateAndRepositionGroundUnits(table, Anchor, MaxRadius, Spacing, Positions)</strong></a></h2>
|
||||
</div>
|
||||
|
||||
<p>This function uses Disposition and other fallback logic to find better ground positions for ground units.</p>
|
||||
|
||||
|
||||
<ul>
|
||||
<li>NOTE: This is not a spawn randomizer.</li>
|
||||
<li>It will try to find clear ground locations avoiding trees, water, roads, runways, map scenery, statics and other units in the area and modifies the provided positions table.</li>
|
||||
<li>Maintains the original layout and unit positions as close as possible by searching for the next closest valid position to each unit.</li>
|
||||
</ul>
|
||||
|
||||
<div id= "#Functions##ValidateAndRepositionGroundUnits" class="w3-show w3-white">
|
||||
<div class="w3-container w3-white" id="functiontype">
|
||||
<h2><strong>Defined in:</strong></h2>
|
||||
<div class="w3-margin-left">
|
||||
<p>UTILS</p>
|
||||
</div>
|
||||
<h2><strong>Parameters:</strong></h2>
|
||||
<div class="w3-row w3-margin-left w3-border-bottom w3-border-l2">
|
||||
<div class="w3-half">
|
||||
<p>
|
||||
<strong><strong>table</strong></strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
<p>Positions A table of DCS#Vec2 or DCS#Vec3, can be a units table from the group template.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="w3-row w3-margin-left w3-border-bottom w3-border-l2">
|
||||
<div class="w3-half">
|
||||
<p>
|
||||
<a href="DCS.html##(Vec2)">DCS#Vec2</a>
|
||||
<strong><strong>Anchor</strong></strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
<p>(Optional) DCS#Vec2 or DCS#Vec3 as anchor point to calculate offset of the units.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="w3-row w3-margin-left w3-border-bottom w3-border-l2">
|
||||
<div class="w3-half">
|
||||
<p>
|
||||
#number
|
||||
<strong><strong>MaxRadius</strong></strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
<p>(Optional) Max radius to search for valid ground locations in meters. Default is double the max radius of the units.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="w3-row w3-margin-left w3-border-bottom w3-border-l2">
|
||||
<div class="w3-half">
|
||||
<p>
|
||||
#number
|
||||
<strong><strong>Spacing</strong></strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
<p>(Optional) Minimum spacing between units in meters. Default is 5% of the search radius or 5 meters, whichever is larger.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="w3-row w3-margin-left w3-border-bottom w3-border-l2">
|
||||
<div class="w3-half">
|
||||
<p>
|
||||
<strong><strong>Positions</strong></strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
<p></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user