Garry's Mod Wiki

Garry's Mod Wiki

  boolean Entity:IsLineOfSightClear( Vector target )

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.

Arguments

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

Returns

1 boolean
Returns true if the line of sight is clear

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...