<?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_getPathLength</id>
		<title>MIST getPathLength - 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_getPathLength"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getPathLength&amp;action=history"/>
		<updated>2026-05-05T12:02:00Z</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_getPathLength&amp;diff=11655&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Mission Scripting  |fName= mist.getPathLength|  |vNum = Mist 4.5  |desc= Returns the distance of a given table of paths. If the optional cutoff distance is passed the functi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getPathLength&amp;diff=11655&amp;oldid=prev"/>
				<updated>2020-11-02T06:34:33Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Mission Scripting  |fName= mist.getPathLength|  |vNum = Mist 4.5  |desc= Returns the distance of a given table of paths. If the optional cutoff distance is passed the functi...&amp;quot;&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.getPathLength|&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 4.5&lt;br /&gt;
&lt;br /&gt;
|desc= Returns the distance of a given table of paths. If the optional cutoff distance is passed the function will immediately return with the index nearest to where that distance is reached. &lt;br /&gt;
&lt;br /&gt;
By default distance is calculated by &amp;quot;2d&amp;quot; distance, if the optional variable for topo is passed then 3d distance will be accounted for. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|rtnType= number&lt;br /&gt;
&lt;br /&gt;
|reqType1= table&lt;br /&gt;
&lt;br /&gt;
|reqName1= path&lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|optType1= number&lt;br /&gt;
&lt;br /&gt;
|optName1= cutoff&lt;br /&gt;
&lt;br /&gt;
|optType2= boolean&lt;br /&gt;
&lt;br /&gt;
|optName2= topo &lt;br /&gt;
&lt;br /&gt;
|optType3=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|varExamples= &lt;br /&gt;
    {[1] = {x = 2300, y = 234526}, [2] = {x = 2300, y = -2352},[3] = {x = 35235, y = -564156},[4] = {x = 54, y = 48456456}, } &lt;br /&gt;
&lt;br /&gt;
|rtnExamples= &lt;br /&gt;
&lt;br /&gt;
|example= &lt;br /&gt;
    The following example uses land.finPathOnroads to get a path that a ground AI group could take between two points. &lt;br /&gt;
            local rPath = land.findPathOnRoads('roads', spawnPoint.x, spawnPoint.y, roadEnd.x, roadEnd.y)&lt;br /&gt;
            local length = mist.getPathLength(rPath)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|notes=  &lt;br /&gt;
&lt;br /&gt;
|funcs= {{ListOfMistGeneralPurposeFuncs}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category:MIST|getPathLength]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>