<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://cmm.ozdeadmeat.com/index.php?action=history&amp;feed=atom&amp;title=BuildRoadRoute</id>
	<title>BuildRoadRoute - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cmm.ozdeadmeat.com/index.php?action=history&amp;feed=atom&amp;title=BuildRoadRoute"/>
	<link rel="alternate" type="text/html" href="https://cmm.ozdeadmeat.com/index.php?title=BuildRoadRoute&amp;action=history"/>
	<updated>2026-06-04T14:19:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://cmm.ozdeadmeat.com/index.php?title=BuildRoadRoute&amp;diff=6005&amp;oldid=prev</id>
		<title>Ozdeadmeat: BuildRoadRoute – created via PowerShell script (2025-11-11T21:12:41Z)</title>
		<link rel="alternate" type="text/html" href="https://cmm.ozdeadmeat.com/index.php?title=BuildRoadRoute&amp;diff=6005&amp;oldid=prev"/>
		<updated>2025-11-11T10:12:42Z</updated>

		<summary type="html">&lt;p&gt;BuildRoadRoute – created via PowerShell script (2025-11-11T21:12:41Z)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:FunctionInfo|fName=          BuildRoadRoute|fDescription=   Constructs a road-based route between two points by finding the closest road points and generating waypoints along the path. If the initial or destination points are not on roads, it projects them to the nearest road segment. The function returns a list of waypoints spaced at a given distance, with optional debug visualization.|parentFile=     cmm.spawnFunctions.lua|syntax=         CMM.BuildRoadRoute(InitVec3 &amp;lt;TBL&amp;gt;, DestVec3 &amp;lt;TBL&amp;gt;, distance &amp;lt;number&amp;gt;, debug &amp;lt;boolean&amp;gt;)|return=         table or nil|returnDesc=     returns a table of waypoints, each containing x, y, z coordinates; returns nil if input validation fails.|example=        CMM.BuildRoadRoute({x=100,y=200,z=300},{x=500,y=600,z=700},3000,true)|exampleDesc=    Builds a route from (100,200,300) to (500,600,700) with 3000-unit spacing and enables debug visualization, showing both the path and waypoints on the map.|related=        |note=           -- TODO BuildRoadRoute is in progress. If Init and Dest are not on roads it needs to add those points as offroad points at the start and end of the route|envType= CMM|par1=         table InitVec3|reqType1=     table|reqName1=     InitVec3|desc1=       {x &amp;lt;number&amp;gt;, y &amp;lt;number&amp;gt;, z &amp;lt;number&amp;gt;} – starting position as a vec3 table; if z is nil, an error is thrown.|par2=         table DestVec3|reqType2=     table|reqName2=     DestVec3|desc2=       {x &amp;lt;number&amp;gt;, y &amp;lt;number&amp;gt;, z &amp;lt;number&amp;gt;} – destination position as a vec3 table; if z is nil, an error is thrown.|par3=         number distance|reqType3=     number|reqName3=     distance|desc3=       distance in units between waypoints (defaults to 3000 if not specified).|par4=         boolean debug|reqType4=     boolean|reqName4=     debug|desc4=       if true, visualizes the route and waypoints using red and black circles on the map.}}&lt;/div&gt;</summary>
		<author><name>Ozdeadmeat</name></author>
	</entry>
</feed>