If you use this unit, there is a patherror when the target cannot be reached.

So findPath, then if patherror stand still else move along path.

Firle