Needing help with Pathfinding

Hello. You may know me as the Runic Project guy. Well I need help with pathfinding. Im trying to set up an animal that walks around in its own little area. Then once attacked it will try to run away. Ive found a few videos (posted below) but those pathfinders only try to attack you.

Videos and Links

Im trying to get animals to run away. You guys have any sources or info that can help me do this?

Hello, I think you can try this tutorial and make your own AI Pathway instead of just that Player Attack.

In this tutorial the tutorial is just 6 mins long rest is a editing mistake