<?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_getPointAtDistanceOnPath</id>
	<title>MIST getPointAtDistanceOnPath - 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_getPointAtDistanceOnPath"/>
	<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getPointAtDistanceOnPath&amp;action=history"/>
	<updated>2026-11-24T01:51:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=MIST_getPointAtDistanceOnPath&amp;diff=11658&amp;oldid=prev</id>
		<title>Grimes at 06:50, 2 November 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getPointAtDistanceOnPath&amp;diff=11658&amp;oldid=prev"/>
		<updated>2020-11-02T06:50:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:50, 2 November 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l56&quot;&gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:MIST|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;getPathLength&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:MIST|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;getPointAtDistanceOnPath&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Grimes</name></author>
	</entry>
	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=MIST_getPointAtDistanceOnPath&amp;diff=11657&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Mission Scripting  |fName= mist.getPointAtDistanceOnPath|  |vNum = Mist 4.5  |desc= Returns the point and heading at a given distance along a given path.   If optional roadT...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getPointAtDistanceOnPath&amp;diff=11657&amp;oldid=prev"/>
		<updated>2020-11-02T06:49:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Mission Scripting  |fName= mist.getPointAtDistanceOnPath|  |vNum = Mist 4.5  |desc= Returns the point and heading at a given distance along a given path.   If optional roadT...&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.getPointAtDistanceOnPath|&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 4.5&lt;br /&gt;
&lt;br /&gt;
|desc= Returns the point and heading at a given distance along a given path. &lt;br /&gt;
&lt;br /&gt;
If optional roadType is passed and the path length is only 2 points, then the function will generate a path via land.findPathOnRoads. By default it assumes &amp;#039;roads&amp;#039; but can be given &amp;#039;railroads&amp;#039; value. &lt;br /&gt;
&lt;br /&gt;
Optional returnFormat accepts strings of &amp;quot;vec2&amp;quot; or &amp;quot;vec3&amp;quot;, by default it returns in vec2. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|rtnType= table, number&lt;br /&gt;
&lt;br /&gt;
|reqType1= table&lt;br /&gt;
&lt;br /&gt;
|reqName1= path&lt;br /&gt;
&lt;br /&gt;
|reqType2= number&lt;br /&gt;
&lt;br /&gt;
|reqName2= distance&lt;br /&gt;
&lt;br /&gt;
|reqType3=&lt;br /&gt;
&lt;br /&gt;
|optType1= string&lt;br /&gt;
&lt;br /&gt;
|optName1= roadType&lt;br /&gt;
&lt;br /&gt;
|optType2= string&lt;br /&gt;
&lt;br /&gt;
|optName2= returnFormat&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 would adjust the coordinates of a group that is about to be spawned so that units are aligned on a road at a given interval. &lt;br /&gt;
    local rPath = land.findPathOnRoads(&amp;#039;roads&amp;#039;, spawnPoint.x, spawnPoint.y, roadEnd.x, roadEnd.y)&lt;br /&gt;
    for i = 2, #newGroup.units do&lt;br /&gt;
         local newCoord, heading = getPointAtDistanceOnPath(rPath, (i-1)* 10)&lt;br /&gt;
         newGroup.units[i].x = newCoord.x&lt;br /&gt;
         newGroup.units[i].y = newCoord.y&lt;br /&gt;
         newGroup.units[i].heading = heading&lt;br /&gt;
    end&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>