Updates the lengths of the edges of a path, and returns the total length
of all edges.
ENTITY* - pointer to an entity attached to the path.
Edge lengths of the path.
Can be used to automtically recalculate the path when node positions
were modified by path_setnode.
my.skill17 = path_length(my);
path_scan, path_nextnode, path_setedge,