Entity:IsLineOfSightClear
Description
Returns true if the target is in line of sight.
This will only work when called on CBaseCombatCharacter entities. This includes players, NPCs, grenades, RPG rockets, crossbow bolts, and physics cannisters.
Returns true if the target is in line of sight.