Rm2K3: Line of Sight

I am new to RM2k3, but not programming in general. 

I have a nice little line of sight handler developed.  It works using a taxicab distance metric and the NPC's current direction.  In an open field, this is  a perfect handler, but when placed in a dungeon or a building with a lot of obstacles, it falls short.  NPCs can see through anything.  I wanted to know if there was a way to detect tile passability using RM2k3 event commands.  This is the closest analog I could find to opacity.  I see a Get Terrain ID command and not much else that would help me. 

Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/rm2k3-line-of-sight.42177/