How do I make the AI find a path, save that particular path, and no longer follow the target if it moves?

I want an pathfinder that will find the path for the first time once, then follow it and no longer update it after the target moves. Is there any good way that I can do this?

There are several ways you could go about it including making your own movement script. But if that is all you want to do, using the default scripts should be just fine.

For example, using AiPath, I believe you would simply set aiPath.destination to the position of your target, and then call aiPath.SearchPath().

1 Like