how Enemy can aim at the base?

My enemy have a Topdownmovment behavior. Now I have written some logic that they can detect when the wall is blocking their aim. That’s done. So now they chose the position where they can attack the base easily. but the problem is that they are facing away.
Now what I want them to move towards the base until they are aiming at the base correctly, so that they can attack.


Did you manage to solve this?, it’s a bit hard because there is lot of code already, and not sure why you are marking those conditions?. But you’re already checking if the Car is not rotated towards the Base, if so you should rotate it, then if it’s rotated towards base fire. By the way the gun is a separated object following the tank?