//create_nodes_path(ind)
//creates nodes for an AI to follow on a path
//gets all the needed information
var pth,nodes,obj;
pth=argument0;
nodes=path_get_number(pth);
for(i=0;i<nodes+1;i+=1)
{
obj=instance_create(x+path_get_point_x(pth,i),y+path_get_point_y(pth,i),obj_node)
};
...and the nodes aren't created where the path points should be at all. They seem to be created in entirely random spots.
Edited by Lotias, 11 August 2012 - 02:48 AM.














