Garry's Mod Wiki

Entity:VisibleVec

  boolean Entity:VisibleVec( Vector pos )

Description

Returns true if supplied vector is visible from the entity's line of sight.

This is achieved similarly to a trace.

Arguments

1 Vector pos
The position to check for visibility

Returns

1 boolean
Within line of sight