path_set(ENTITY*,STRING* name)

Attaches the given entity to the path with the given name.

Parameters:

entity - entity pointer.
name - path name, STRING* or char*.

Returns:

Number of nodes in the path, or 0 if the path was not found.

Speed:

Fast

Modifies:

ENTITY* - is attached to the path.

Example:

path_set(me,"path_001");

See also:

path_scan, path_next, path_nextnode

► latest version online