Eventually I would like this to be a built-in feature so you can draw out a path and assign any dynamic entity/light to it. For now we will be doing this functionality through scripting (on which the later easier system will sit upon). You could create a script in the latest build right now which can navigate a boat between coordinates, and if you look at the solider script you will see that you can get those coordinates directly from the waypoint system:
-- find initial waypoint path to follow
PathIndex = -1;
pClosest = 99999;
for pa = 1, AIGetTotalPaths(), 1 do
for po = 1 , AIGetPathCountPoints(pa), 1 do
pDX = g_Entity[e]['x'] - AIPathGetPointX(pa,po);
pDZ = g_Entity[e]['z'] - AIPathGetPointZ(pa,po);
pDist = math.sqrt(math.abs(pDX*pDX)+math.abs(pDZ*pDZ));
if pDist < pClosest and pDist < 200 then
pClosest = pDist;
PathIndex = pa;
end
end -- po
end -- pa
Fear not though! I appreciate not everyone in the world is a programmer, and we will be adding plenty of shortcuts and wizards within the IDE to make simply functionality such as following paths a breeze.
PC SPECS: Windows 7 Ultimate 64-bit, Intel Core i7 920 (PASSMARK:5008), NVIDIA Geforce 9600 GT GPU (PASSMARK:752) , 6GB RAM