Garry's Mod Wiki

ents.FindInPVS

  table ents.FindInPVS( Entity or Vector viewPoint )

Description

Finds all entities that lie within a PVS (Potential Visibility Set).

The function won't take in to account AddOriginToPVS and the like.

Arguments

1 Entity or Vector viewPoint
Entity or Vector to find entities within the PVS of. If a player is given, this function will use the player's view entity.

Returns

1 sequental table<Entity>
The found Entitys.