Added a path following action that will either follow a path once or
follow a path on a loop.