Yann Sorry for the lack of clarity in my explanation. I was trying to keep it simple, but it probably got to simple.
Enemy2 is actually a wall.
if you run the capx you can see that the shooter will move forward until it find its first target which will be enemy1.
The thing is that i only want the shooter to stop and shoot enemy1(the red ball) if the wall(enemy2) is up. If the wall is gone/destroyed then the shooter should continue through the gap between the 2 enemy1's.
Hope that made it a bit more clear. otherwise let me know