Entity/IsLineOfSightClear

From Garry's Mod
Jump to: navigation, search
 Entity:IsLineOfSightClear( )

Description

Returns true if the target is in line of sight. This will only work on CBaseCombatCharacter entities.

Arguments

Vector target

The target to test. You can also supply an Entity instead of a Vector

Returns

boolean

Returns true if the line of sight is clear
Personal tools
Navigation