mirror of
https://github.com/FlightControl-Master/MOOSE_DOCS.git
synced 2025-08-15 10:37:49 +00:00
MOOSE generated documentation [skip ci]
This commit is contained in:
@@ -3831,7 +3831,7 @@ and any spaces before and after the resulting name are removed.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="w3-border">
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(RAT).NewFromTemplate">RAT:NewFromTemplate(SpawnTemplate, SpawnTemplatePrefix, SpawnAliasPrefix)</a></p></td>
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(RAT).NewFromTemplate">RAT:NewFromTemplate(SpawnTemplate, SpawnTemplatePrefix, SpawnAliasPrefix, MooseNaming)</a></p></td>
|
||||
<td class="summary w3-half w3-container" style="word-wrap: break-word">
|
||||
<p>Creates a new SPAWN instance to create new groups based on the provided template.</p>
|
||||
</td>
|
||||
@@ -4471,6 +4471,24 @@ and any spaces before and after the resulting name are removed.</p>
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(RAT)._TranslateRotate">RAT:_TranslateRotate(SpawnIndex, SpawnRootX, SpawnRootY, SpawnX, SpawnY, SpawnAngle)</a></p></td>
|
||||
<td class="summary w3-half w3-container" style="word-wrap: break-word">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="w3-border">
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(RAT).frequency">RAT.frequency</a></p></td>
|
||||
<td class="summary w3-half w3-container" style="word-wrap: break-word">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="w3-border">
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(RAT).skill">RAT.skill</a></p></td>
|
||||
<td class="summary w3-half w3-container" style="word-wrap: break-word">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="w3-border">
|
||||
<td class="name w3-half w3-container" style="word-wrap: break-word"><p><a href="##(RAT).uncontrolled">RAT.uncontrolled</a></p></td>
|
||||
<td class="summary w3-half w3-container" style="word-wrap: break-word">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -17120,11 +17138,14 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' )</code></pre></li>
|
||||
<div class="w3-card-2 w3-padding-small w3-margin-top">
|
||||
|
||||
<div class="w3-theme-l2">
|
||||
<h2><a id="#(RAT).NewFromTemplate" ><strong>RAT:NewFromTemplate(SpawnTemplate, SpawnTemplatePrefix, SpawnAliasPrefix)</strong></a></h2>
|
||||
<h2><a id="#(RAT).NewFromTemplate" ><strong>RAT:NewFromTemplate(SpawnTemplate, SpawnTemplatePrefix, SpawnAliasPrefix, MooseNaming)</strong></a></h2>
|
||||
</div>
|
||||
|
||||
<p>Creates a new SPAWN instance to create new groups based on the provided template.</p>
|
||||
|
||||
|
||||
<p>This will also register the template for future use.</p>
|
||||
|
||||
<div id= "#Functions##NewFromTemplate" class="w3-show w3-white">
|
||||
<div class="w3-container w3-white" id="functiontype">
|
||||
<h2><strong>Defined in:</strong></h2>
|
||||
@@ -17141,7 +17162,7 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' )</code></pre></li>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
<p>is the Template of the Group. This must be a valid Group Template structure!</p>
|
||||
<p>is the Template of the Group. This must be a valid Group Template structure - see <a href="https://wiki.hoggitworld.com/view/DCS_func_addGroup">Hoggit Wiki</a>!</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -17154,7 +17175,7 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' )</code></pre></li>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
<p>is the name of the Group that will be given at each spawn.</p>
|
||||
<p>[Mandatory] is the name of the template and the prefix of the GROUP on spawn.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -17167,7 +17188,20 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' )</code></pre></li>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
<p>is the name that will be given to the Group at runtime.</p>
|
||||
<p>[Optional] is the prefix that will be given to the GROUP on spawn.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="w3-row w3-margin-left w3-border-bottom w3-border-l2">
|
||||
<div class="w3-half">
|
||||
<p>
|
||||
#boolean
|
||||
<strong><strong>MooseNaming</strong></strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
<p>[Optional] If false, skip the Moose naming additions (like groupname#001-01) - you need to ensure yourself no duplicate group names exist!</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -17178,19 +17212,109 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' )</code></pre></li>
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
|
||||
<p>self</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2><strong>Usages:</strong></h2>
|
||||
<ul>
|
||||
<li><pre class="example"><code>-- Create a new SPAWN object based on a Group Template defined from scratch.
|
||||
Spawn_BE_KA50 = SPAWN:NewWithAlias( 'BE KA-50@RAMP-Ground Defense', 'Helicopter Attacking a City' )</code></pre></li>
|
||||
<li><pre class="example"><code>
|
||||
-- Create a new CSAR_Spawn object based on a normal Group Template to spawn a soldier.
|
||||
local CSAR_Spawn = SPAWN:NewWithFromTemplate( Template, "CSAR", "Pilot" )
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
<h2><strong>Usage:</strong></h2>
|
||||
<pre class="example"><code>-- Spawn a P51 Mustang from scratch
|
||||
local ttemp =
|
||||
{
|
||||
["modulation"] = 0,
|
||||
["tasks"] =
|
||||
{
|
||||
}, -- end of ["tasks"]
|
||||
["task"] = "Reconnaissance",
|
||||
["uncontrolled"] = false,
|
||||
["route"] =
|
||||
{
|
||||
["points"] =
|
||||
{
|
||||
[1] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["action"] = "Turning Point",
|
||||
["alt_type"] = "BARO",
|
||||
["speed"] = 125,
|
||||
["task"] =
|
||||
{
|
||||
["id"] = "ComboTask",
|
||||
["params"] =
|
||||
{
|
||||
["tasks"] =
|
||||
{
|
||||
}, -- end of ["tasks"]
|
||||
}, -- end of ["params"]
|
||||
}, -- end of ["task"]
|
||||
["type"] = "Turning Point",
|
||||
["ETA"] = 0,
|
||||
["ETA_locked"] = true,
|
||||
["y"] = 666285.71428571,
|
||||
["x"] = -312000,
|
||||
["formation_template"] = "",
|
||||
["speed_locked"] = true,
|
||||
}, -- end of [1]
|
||||
}, -- end of ["points"]
|
||||
}, -- end of ["route"]
|
||||
["groupId"] = 1,
|
||||
["hidden"] = false,
|
||||
["units"] =
|
||||
{
|
||||
[1] =
|
||||
{
|
||||
["alt"] = 2000,
|
||||
["alt_type"] = "BARO",
|
||||
["livery_id"] = "USAF 364th FS",
|
||||
["skill"] = "High",
|
||||
["speed"] = 125,
|
||||
["type"] = "TF-51D",
|
||||
["unitId"] = 1,
|
||||
["psi"] = 0,
|
||||
["y"] = 666285.71428571,
|
||||
["x"] = -312000,
|
||||
["name"] = "P51-1-1",
|
||||
["payload"] =
|
||||
{
|
||||
["pylons"] =
|
||||
{
|
||||
}, -- end of ["pylons"]
|
||||
["fuel"] = 340.68,
|
||||
["flare"] = 0,
|
||||
["chaff"] = 0,
|
||||
["gun"] = 100,
|
||||
}, -- end of ["payload"]
|
||||
["heading"] = 0,
|
||||
["callsign"] =
|
||||
{
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
["name"] = "Enfield11",
|
||||
[3] = 1,
|
||||
}, -- end of ["callsign"]
|
||||
["onboard_num"] = "010",
|
||||
}, -- end of [1]
|
||||
}, -- end of ["units"]
|
||||
["y"] = 666285.71428571,
|
||||
["x"] = -312000,
|
||||
["name"] = "P51",
|
||||
["communication"] = true,
|
||||
["start_time"] = 0,
|
||||
["frequency"] = 124,
|
||||
}
|
||||
|
||||
|
||||
local mustang = SPAWN:NewFromTemplate(ttemp,"P51D")
|
||||
-- you MUST set the next three:
|
||||
mustang:InitCountry(country.id.FRANCE)
|
||||
mustang:InitCategory(Group.Category.AIRPLANE)
|
||||
mustang:InitCoalition(coalition.side.BLUE)
|
||||
mustang:OnSpawnGroup(
|
||||
function(grp)
|
||||
MESSAGE:New("Group Spawned: "..grp:GetName(),15,"SPAWN"):ToAll()
|
||||
end
|
||||
)
|
||||
mustang:Spawn()
|
||||
</code></pre>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -17245,7 +17369,7 @@ Spawn_BE_KA50 = SPAWN:NewWithAlias( 'BE KA-50@RAMP-Ground Defense', 'Helicopter
|
||||
</div>
|
||||
<div class="w3-half">
|
||||
|
||||
|
||||
<p>self</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user