by Spike » Sun Mar 20, 2011 11:24 pm
moving to a goal is easy.
moving away from a goal is easy.
avoiding walls while doing either of the former is hard.
You'd need a lot of tracelines to see where the various holes in walls are that the dog can run through/hide in, and contingency logic if the player manages to corner it. Or something.
if you have a waypoint which is known to be safe, you can movetogoal to it, but the dog might run towards the player and basically ignore him completely. Not realistic. Otherwise there's walkmove which gives direct control over the direction, but you'll have to figure out which walls to avoid yourself.
.