Enemies shoot through walls

Thank you to all who replied, I appreciate it. The GetBestEnemyAIAction() seems (to me) would be the place to check, but I’m still too new to Unity to completely understand how this method interacts with the various Actions. As written, it seems like the friendly character should not be able to shoot through walls, and it cannot, but the enemy AI seems to be missing a check. I reduced the weapon range to 4 and the enemy correctly navigates to the door and takes a shot, but in this case the LOS is not blocked so it works as expected. I’m a noob taking an intermediate course, so this was to be expected. I like the teaching style and learn a great deal. I was hoping for a functional sandbox to play around in. Solving this problem is still beyond my understanding. I’ll keep picking at it and (hopefully) figure it out. Thanks again.