<?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_groupToRandomZone</id>
		<title>MIST groupToRandomZone - 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_groupToRandomZone"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_groupToRandomZone&amp;action=history"/>
		<updated>2026-04-24T22:46:30Z</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_groupToRandomZone&amp;diff=1036&amp;oldid=prev</id>
		<title>Grimes at 23:04, 13 April 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_groupToRandomZone&amp;diff=1036&amp;oldid=prev"/>
				<updated>2018-04-13T23:04:20Z</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.groupToRandomZone|&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 2.0&lt;br /&gt;
&lt;br /&gt;
|desc= Function will set the task of the specified group to go a random zone as defined by zone. group can be either a group name or a group table. zone accepts a zone name, zone table, or table of zone names. If multiple zone names are given the function will randomly pick a zone to go to and pick at random a point in that zone as the final destination.  form is the default formation name in as defined by the scripting engine. See [[mist.ground.buildWP]] or the Scripting Engine wiki for details. heading is the final heading the group will be oriented in once it reaches its destination. speed is the speed in kilometers per hour that the group will travel at to reach its destination.|&lt;br /&gt;
&lt;br /&gt;
|rtnType= nothing&lt;br /&gt;
&lt;br /&gt;
|reqType1= table/string&lt;br /&gt;
&lt;br /&gt;
|reqName1= groupTable/groupName&lt;br /&gt;
&lt;br /&gt;
|reqType2= table/table/string&lt;br /&gt;
&lt;br /&gt;
|reqName2= zoneNames/zoneObject/zoneName&lt;br /&gt;
&lt;br /&gt;
|reqType3= &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|optType1= string&lt;br /&gt;
&lt;br /&gt;
|optName1= formation&lt;br /&gt;
&lt;br /&gt;
|optType2= number&lt;br /&gt;
&lt;br /&gt;
|optName2= heading&lt;br /&gt;
&lt;br /&gt;
|optType3= number&lt;br /&gt;
&lt;br /&gt;
|optName3= speed&lt;br /&gt;
&lt;br /&gt;
|optType4= boolean&lt;br /&gt;
&lt;br /&gt;
|optName4= useRoads&lt;br /&gt;
&lt;br /&gt;
|optType5= &lt;br /&gt;
&lt;br /&gt;
|vars=&lt;br /&gt;
&lt;br /&gt;
|varExamples= &lt;br /&gt;
&lt;br /&gt;
Group Entries&lt;br /&gt;
  group = string of group name 'myGroup'&lt;br /&gt;
  or&lt;br /&gt;
  group = Group Object  Group.getByName('myGroup')&lt;br /&gt;
&lt;br /&gt;
Zone Entries&lt;br /&gt;
  zone= table of zone name strings {'zone1', 'zone2', 'zone3'}&lt;br /&gt;
  zone = string of a zone name 'zone1'&lt;br /&gt;
  zone = zone table {point = vec3, radius = number}&lt;br /&gt;
&lt;br /&gt;
  formation= string ground formations&lt;br /&gt;
  heading= number in degrees 0 to 360&lt;br /&gt;
  speed= number in kilometers per hour&lt;br /&gt;
  roadUsing = boolean. If false and the group is 1.3 * radius outside the center of the zone, the group will go to the nearest road&lt;br /&gt;
     and follow it to the nearest on road point of the new random point in the zone. &lt;br /&gt;
&lt;br /&gt;
|rtnExamples= nothing&lt;br /&gt;
&lt;br /&gt;
|example= &lt;br /&gt;
Sends the group 'myGroup2' to a random location in myZone1 or myZone2. The group will use the formation cone when off road and if the group spawns outside of the zone that is picked, it will use a road to travel to the nearest point of their destination. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
do&lt;br /&gt;
  mist.groupToRandomZone('myGroup2', {'myZone1', 'myZone2'}, 'cone', nil, nil, true)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All three of these entires do the same thing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  mist.groupToRandomZone(Group.getByName('group1'), trigger.misc.getZone('zone1')) &lt;br /&gt;
  mist.groupToRandomZone(Group.getByName('group1'), 'zone1') &lt;br /&gt;
  mist.groupToRandomZone('group1', {'zone1'})&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
|notes=&lt;br /&gt;
 &lt;br /&gt;
|funcs= {{listOfMistGroupOrders}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category: MIST|groupToRandomZone]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>