<?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=MIST_spawnRandomizedGroup</id>
		<title>MIST spawnRandomizedGroup - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_spawnRandomizedGroup"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_spawnRandomizedGroup&amp;action=history"/>
		<updated>2026-04-26T12:37:31Z</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=MIST_spawnRandomizedGroup&amp;diff=1061&amp;oldid=prev</id>
		<title>Grimes at 23:11, 13 April 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_spawnRandomizedGroup&amp;diff=1061&amp;oldid=prev"/>
				<updated>2018-04-13T23:11:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Mission Scripting&lt;br /&gt;
&lt;br /&gt;
|fName= mist.spawnRandomizedGroup&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 3.5&lt;br /&gt;
&lt;br /&gt;
|desc= Respawns a group of the name groupName at its initial location as set in the mission editor but randomizes the order of the units within the group. '''Group will spawn with the same task as defined in the mission editor.'''  The optional variables define which units in the group will not be randomized. The lowerLimit and upperLimit variables respectively define the low and upper limits on which unit indexes can be randomized. The excludeNum table is a table of numbers, in no particular order, of which unit indexes will be ignored. The excludeType table defines the unitType name of units that will be ignored.  &lt;br /&gt;
&lt;br /&gt;
|rtnType= boolean&lt;br /&gt;
&lt;br /&gt;
|reqType1= string&lt;br /&gt;
&lt;br /&gt;
|reqName1= groupName&lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|optType1= table&lt;br /&gt;
&lt;br /&gt;
|optName1= vars&lt;br /&gt;
&lt;br /&gt;
|optType2=&lt;br /&gt;
&lt;br /&gt;
|varExamples= &lt;br /&gt;
groupName 'myRandomGroup1'&lt;br /&gt;
&lt;br /&gt;
{{varsTable&lt;br /&gt;
&lt;br /&gt;
|r1T= &lt;br /&gt;
|r1N= &lt;br /&gt;
&lt;br /&gt;
|r2T= &lt;br /&gt;
|r2N= &lt;br /&gt;
&lt;br /&gt;
|r3T= &lt;br /&gt;
|r3N= &lt;br /&gt;
&lt;br /&gt;
|r4N= &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|o1T= number&lt;br /&gt;
|o1N= lowerLimit&lt;br /&gt;
&lt;br /&gt;
|o2T= number&lt;br /&gt;
|o2N= upperLimit&lt;br /&gt;
&lt;br /&gt;
|o3T= table&lt;br /&gt;
|o3N= excludeNum&lt;br /&gt;
&lt;br /&gt;
|o4T= table&lt;br /&gt;
|o4N= excludeType&lt;br /&gt;
&lt;br /&gt;
|o5T= &lt;br /&gt;
|o5N= &lt;br /&gt;
&lt;br /&gt;
|r1D= &lt;br /&gt;
|r2D= &lt;br /&gt;
|r3D= &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
|r4D= &lt;br /&gt;
|r5D=&lt;br /&gt;
|r6D=&lt;br /&gt;
&lt;br /&gt;
|o1D= is an optional variable that defines the lower range of which unit indexes will be randomized. &lt;br /&gt;
|o2D= is an optional variable that defines the upper range of which unit indexes will be randomized.&lt;br /&gt;
|o3D= is an optional table that defines unit indexes that will not be randomized. &lt;br /&gt;
|o4D= is an optional table of strings that lists unitTypes that will not be randomized. &lt;br /&gt;
|o5D=&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
|rtnExamples= true&lt;br /&gt;
&lt;br /&gt;
|example= &amp;lt;pre&amp;gt;&lt;br /&gt;
  mist.spawnRandomizedGroup('convoy1', {lowerLimit = 2, upperLimit = 9})&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Group will spawn in the following order with 'r' representing a random position:&lt;br /&gt;
1, 2, r, r, r, r, r, r, 9, 10&lt;br /&gt;
&lt;br /&gt;
|notes= The purpose of this function is to add a little variety to a mission. A groups composition might be the same as last time, but a sam threat for instance would not always be in the same position within the group. &lt;br /&gt;
 &lt;br /&gt;
|funcs= {{listOfMistDynAddFuncs}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category: MIST|spawnRandomziedGroup]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>