Garry's Mod Wiki

ents.FindInPVS

  table ents.FindInPVS( any viewPoint )

Description

Finds all entities that lie within a PVS.

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

Arguments

1 any 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 table
The found Entitys.