path_scannode(ENTITY*,var index)

Finds further path nodes within the cone of the last path_scan instruction.

Parameters:

ENTITY* - entity pointer.
index - distance index, 0 == closest, 1 == second closest and so on.

Returns:

The number of the node found,
or 0 if no more nodes were in the scan cone.

Modifies(path_getnode):

ENTITY* - is attached to the path belonging to the found node.

Speed:

Fast

Example:

result = path_scan(me,my.x,my.pan,vector(360,180,1000);
temp = path_scannode(my, 1); // get the next scanned path node

See also:

path_scan, path_nextnode ► latest version online