26.11.2013, 01:02
that depends on your algorithm: if you are using a node map, then excluding nodes in the "forbidden" area will do fine. as start, to see if the npc stepped into the mall, you can, as first attempt, simply respawn them. as soon that works, you can change the moving-algorithm to chose a different direction, i.e. the second best route (let the npc walk around the mall).