Garry's Mod Wiki

Entity:TestPVS

  boolean Entity:TestPVS( any testPoint )

Description

Check if the given position or entity is within this entity's PVS(Potential Visibility Set).

See also Entity:IsDormant.

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

Arguments

1 any testPoint
Entity or Vector to test against. If an entity is given, this function will test using its bounding box.

Returns

1 boolean
True if the testPoint is within our PVS.