I've been having some difficulty trying to figure out how to get NPCs in my game to move the way I want them to.
Basically I want the NPC to constantly approach the Player. Unfortunately the programming for the
Autonomous Movement Type: Approach has a flaw in its design.
I would like to make it so these NPCs will approach the Player but if there is a solid wall between them they will path
around it instead of just standing there staring at a wall.
Example:
This is how the pathing works currently. As you can see after the player runs to the bedroom the zombies will face him
and stop on the other side of the wall.
But I'm trying to make them do the following instead. Even if the player is in another room the zombies should path
to the room instead of just looking at a wall. Like this.
Now preferably if I could set it so only certain walls block line of site and cause this pathing that would be great.
Pretty much only if the zombies cant see the player realistically such as through a wall would this happen.
Not sure if I explained this well or not but any help would be appreciated.