<?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_getPathInSegments</id>
		<title>MIST getPathInSegments - 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_getPathInSegments"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getPathInSegments&amp;action=history"/>
		<updated>2026-04-25T00:54:54Z</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_getPathInSegments&amp;diff=11656&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Mission Scripting  |fName= mist.getPathInSegments|  |vNum = Mist 4.5  |desc= Returns a table of points that divide the passed path in a given number of segments. For example...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getPathInSegments&amp;diff=11656&amp;oldid=prev"/>
				<updated>2020-11-02T06:38:47Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Mission Scripting  |fName= mist.getPathInSegments|  |vNum = Mist 4.5  |desc= Returns a table of points that divide the passed path in a given number of segments. For example...&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.getPathInSegments|&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 4.5&lt;br /&gt;
&lt;br /&gt;
|desc= Returns a table of points that divide the passed path in a given number of segments. For example if a path is approximately 100km in length and you pass number of segments of 5, then the function will return 6 points that are approximately 20 km apart from another. &lt;br /&gt;
&lt;br /&gt;
|rtnType= table&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= segments&lt;br /&gt;
&lt;br /&gt;
|optType2= boolean&lt;br /&gt;
&lt;br /&gt;
|optName2= exact&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 segments = mist.getPathInSegments(rPath, 5)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|notes=  At time of creation exact value is not coded. &lt;br /&gt;
&lt;br /&gt;
|funcs= {{ListOfMistGeneralPurposeFuncs}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category:MIST|getPathInSegments]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>