<?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_LOS</id>
		<title>MIST units LOS - 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_LOS"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_units_LOS&amp;action=history"/>
		<updated>2026-04-24T15:33:50Z</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_LOS&amp;diff=1066&amp;oldid=prev</id>
		<title>Grimes at 23:13, 13 April 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_units_LOS&amp;diff=1066&amp;oldid=prev"/>
				<updated>2018-04-13T23:13:11Z</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_LOS&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 polygon zone.&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= unitSet1&lt;br /&gt;
&lt;br /&gt;
|r2T= number&lt;br /&gt;
|r2N= altOffSet1&lt;br /&gt;
&lt;br /&gt;
|r3T= UnitNameTable&lt;br /&gt;
|r3N= unitSet2&lt;br /&gt;
&lt;br /&gt;
|r4T= number&lt;br /&gt;
|r4N= altOffSet2&lt;br /&gt;
&lt;br /&gt;
|r5T= number/string&lt;br /&gt;
|r5N= flag&lt;br /&gt;
&lt;br /&gt;
|r6N=&lt;br /&gt;
&lt;br /&gt;
|o6T= table&lt;br /&gt;
|o6N= unitTableDef1&lt;br /&gt;
&lt;br /&gt;
|o7T= table&lt;br /&gt;
|o7N= UnitTableDef2&lt;br /&gt;
&lt;br /&gt;
|o8N=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|o1T= number/string&lt;br /&gt;
|o1N= stopFlag&lt;br /&gt;
&lt;br /&gt;
|o2T= number&lt;br /&gt;
|o2N= radius&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;
|r1D= UnitNameTables- a tables of unit names that follow a special set of rules (see the entry on UnitNameTables). &lt;br /&gt;
|r2D= is the number of meters above the position of each unit from unitset1 that Line of Sight is checked from, cannot be 0.&lt;br /&gt;
|r3D= UnitNameTables- a tables of unit names that follow a special set of rules (see the entry on UnitNameTables). &lt;br /&gt;
|r4D= is the number of meters above the position of each unit from unitset2 that Line of Sight is checked from, cannot be 0.&lt;br /&gt;
|r5D= is the flag that will be set true if the conditions are true&lt;br /&gt;
|o6D= is an optional table containing the a [[unitNameTables]] definition used to define the unitset1 value. &lt;br /&gt;
|o7D= is an optional table containing the a [[unitNameTables]] definition used to define the unitset2 value. &lt;br /&gt;
|o8D=&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 a specify a maximum radius, in meters, out to which the &lt;br /&gt;
LOS check occurs; beyond this radius, units will not be considered LOS.&lt;br /&gt;
|o3D= 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;
|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;
}}&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_LOS{ &lt;br /&gt;
    unitset1 = {'[g]M1 PLT1', '[g]M1 PLT2', '[g]M2 PLT1'}, &lt;br /&gt;
    altoffset1 = 3, &lt;br /&gt;
    unitset2 = {'[red][vehicle]'}, &lt;br /&gt;
    altoffset2 = 3, &lt;br /&gt;
    flag = 10, &lt;br /&gt;
    interval = 20 &lt;br /&gt;
  }&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|notes= nce this function is run, it will start a continuously evaluated process that will set flag flag true &lt;br /&gt;
once units listed in unitset1 are line-of-sight (LOS) to units listed in unitset2. This process will &lt;br /&gt;
keep running, and flag will keep being set true as long as the line-of-sight conditions persist, &lt;br /&gt;
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 unitset1 or unitset2 is passed as a unitNameTable definition table then that information will be added to the optional variables unitTableDef1 and unitTableDef2. 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|unts_LOS]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>