You can modify my basic path function found here
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Main=54661&Number=455425#Post455440

You my have add so math to smooth the between nodes like path_spline does.

By setting the node number closest to the monster here
my.NODE_NEXT=path_nextnode(my,1,1); // SET THE NODE
you can avoid the wrapping.

I am providing no more support for this, Unless I get bored when the weekend and drinks run out.
Mal

Last edited by Malice; 10/30/15 03:57. Reason: Correct link adress