The next problem is - how to make a new path scan code?
When i want to search a new path it makes strange things.
In the begin enemy walks it's path normal, but when he comes to the end he can't find another path? Let's say when the node 6 is taken then search a new path-but it didn't work...
Whats the problem ? ? ?
Script-
if(node == 6)
{
result = path_scan(pedalis2,pedalis2.x,pedalis2.pan, VECTOR(360,180,1000));
if(result == 0){error("[censored]");return;}
else{error("path_found");}
node = 1;
path_getnode(my,node,node_pos,null);
}