<?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_units_in_moving_zones</id>
		<title>MIST units in moving zones - 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_units_in_moving_zones"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_units_in_moving_zones&amp;action=history"/>
		<updated>2026-04-24T16:01: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_units_in_moving_zones&amp;diff=1063&amp;oldid=prev</id>
		<title>Grimes at 23:12, 13 April 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_units_in_moving_zones&amp;diff=1063&amp;oldid=prev"/>
				<updated>2018-04-13T23:12:10Z</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.flagFunc.units_in_moving_zones&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 1.0&lt;br /&gt;
&lt;br /&gt;
|desc= Sets a flag true when the a required number of units are inside of the specified zones which are attached to the specified zone_units.&lt;br /&gt;
&lt;br /&gt;
|rtnType= nothing&lt;br /&gt;
&lt;br /&gt;
|reqType1= table&lt;br /&gt;
&lt;br /&gt;
|reqName1= vars&lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|optType1= &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|varExamples= {{varsTable&lt;br /&gt;
&lt;br /&gt;
|r1T= UnitNameTable&lt;br /&gt;
|r1N= units&lt;br /&gt;
&lt;br /&gt;
|r2T= UnitNameTable&lt;br /&gt;
|r2N= zone_units&lt;br /&gt;
&lt;br /&gt;
|r3T= number/string&lt;br /&gt;
|r3N= flag&lt;br /&gt;
&lt;br /&gt;
|r4T= number&lt;br /&gt;
|r4N= radius&lt;br /&gt;
&lt;br /&gt;
|r5T= &lt;br /&gt;
|r5N= &lt;br /&gt;
&lt;br /&gt;
|r6T= &lt;br /&gt;
|r6N= &lt;br /&gt;
&lt;br /&gt;
|o1T= number/string&lt;br /&gt;
|o1N= stopFlag&lt;br /&gt;
&lt;br /&gt;
|o2T= string&lt;br /&gt;
|o2N= zone_type&lt;br /&gt;
&lt;br /&gt;
|o3T= number&lt;br /&gt;
|o3N= req_num&lt;br /&gt;
&lt;br /&gt;
|o4T= number&lt;br /&gt;
|o4N= interval&lt;br /&gt;
&lt;br /&gt;
|o5T= boolean&lt;br /&gt;
|o5N= toggle&lt;br /&gt;
&lt;br /&gt;
|o6T= table&lt;br /&gt;
|o6N= unitTableDef&lt;br /&gt;
&lt;br /&gt;
|o7T= table&lt;br /&gt;
|o7N= zUnitTableDef&lt;br /&gt;
&lt;br /&gt;
|o8N=&lt;br /&gt;
&lt;br /&gt;
|r1D= is a UnitNameTable- a table of unit names that follow a special set of rules (see the entry &lt;br /&gt;
on [[unitNameTables]]). &lt;br /&gt;
|r2D= is a UnitNameTable- a table of unit names that follow a special set of rules (see the &lt;br /&gt;
entry on [[unitNameTables]]). &lt;br /&gt;
|r3D= is the flag number that will be set true if the conditions are met&lt;br /&gt;
|r4D= is the radius, in meters, of all the zones drawn around each unit in zone_units. &lt;br /&gt;
|r5D=&lt;br /&gt;
|r6D=&lt;br /&gt;
&lt;br /&gt;
|o1D=  is an optional variable that allows you to specify a flag number that, if set true, will &lt;br /&gt;
stop the process.   &lt;br /&gt;
|o2D=  is an optional variable that allows you to specify the minimum number of units that &lt;br /&gt;
must be in one (or more) of the zones before flag is set true. &amp;lt;ins&amp;gt; If req_num is not specified, it &lt;br /&gt;
defaults to 1. &amp;lt;/ins&amp;gt;&lt;br /&gt;
|o3D= is an optional variable that defines the shape of the zones.  The following are the &lt;br /&gt;
allowed values for zone_type: &lt;br /&gt;
  'cylinder' - cylindrical shaped zone extending to +/- infinity in altitude. &lt;br /&gt;
  'sphere' - spherical zone. &lt;br /&gt;
 &lt;br /&gt;
If not specified, it defaults to 'cylinder'. &lt;br /&gt;
|o4D= is an optional variable that allows you to specify how often (in seconds) the in-zone &lt;br /&gt;
condition is checked; for lots of units in lots of zones (like hundreds of units in hundreds of &lt;br /&gt;
different zones), it might be desirable to increase the interval to save computer processing &lt;br /&gt;
time. &amp;lt;ins&amp;gt; If not specified, interval defaults to 1 &amp;lt;/ins&amp;gt;&lt;br /&gt;
|o5D=  is an optional variable that if present will switch the flag value to false when the &lt;br /&gt;
required conditions are not met.  If not specified toggle defaults to false.  &lt;br /&gt;
&lt;br /&gt;
|o6D= is an optional table containing the a [[unitNameTables]] definition used to define the units value. &lt;br /&gt;
|o7D= is an optional table containing the a [[unitNameTables]] definition used to define the zone_units value. &lt;br /&gt;
|o8D=&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
|rtnExamples= nothing&lt;br /&gt;
&lt;br /&gt;
|example= &amp;lt;code&amp;gt;&lt;br /&gt;
do&lt;br /&gt;
  mist.flagFunc.units_in_moving_zones{ &lt;br /&gt;
    units = {'[blue]'}, &lt;br /&gt;
    zone_units = {'[red]'}, &lt;br /&gt;
    flag = 500, &lt;br /&gt;
    radius = 10000, &lt;br /&gt;
    stopflag = 9999, &lt;br /&gt;
    req_num = 4, &lt;br /&gt;
    zone_type = 'sphere', &lt;br /&gt;
    interval = 10, &lt;br /&gt;
  } &lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|notes= Once this function is run, it will start a continuously evaluated process that will set flag true &lt;br /&gt;
once units listed in units are inside any of the moving zones around the units listed in &lt;br /&gt;
16 &lt;br /&gt;
 &lt;br /&gt;
zone_units. This process will keep running, and flag will keep being set true as long as the &lt;br /&gt;
unit(s)-in-zone(s) conditions persist, unless the process is stopped with stopflag.&lt;br /&gt;
&lt;br /&gt;
Mist 3.5 allows for strings to be used to define flags. &lt;br /&gt;
&lt;br /&gt;
'''''Mist 4.0''''' has modified this function to better adapt to added any units dynamically spawned into the mission. If units or zone_units is passed as a unitNameTable definition table then that information will be added to the optional variables unitTableDef and zUnitTableDef. Once present there will be a check whenever dynamically added units are spawned into the mission, if those units fit into the unitNameTable definition then they will also be checked by the function.  &lt;br /&gt;
&lt;br /&gt;
|funcs= {{listOfMistFlagFuncs}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category: MIST|units_in_moving_zones]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>