Ok, I'm going to try to be as clear as possible.
I'm basically making a game like Gauntlet.
I have my enemies spawning at spawn points, they have bullet behaviors on them so that they will aim towards the player. However, once they hit a wall (I have it set so that when they hit them, they rotate towards the player) they fly towards the player, regardless of what's in the way including the solid walls. How do I prevent them from doing so? How do I make them recognize that the wall is there, and that they need to go around it to get to the player?