I'm currently using the following code ...
Is there any better way ???
void setPathNodesToGround() {
pathMover = 1;
VECTOR nodePos;
var noderesult = path_scan(current_player,current_player.x,current_player.pan,vector(360,180,10000));
int counter = 1;
while(noderesult > 0) {
path_getnode(current_player, noderesult, nodePos, NULL);
trace_mode = IGNORE_ME + USE_BOX + IGNORE_PASSABLE + IGNORE_PASSENTS;
c_trace(nodePos.x,vector(nodePos.x,nodePos.y,nodePos.z-5000),trace_mode);
path_setnode(current_player, noderesult, target, NULL);
noderesult = path_scannode(current_player, counter);
counter += 1;
wait(1);
}
pathMover = 0;
}
Regards,
Pegamode