How do you script an animal framework?

  1. What do you want to achieve?
    Make a working animal system that will react to gun shots, people coming near and walking around randomly. This system would include fish swimming, deer, and ducks.

  2. What is the issue? I need somewhere to start.

  3. What solutions have you tried so far? Tried some pathfinding, did not work well.