Garry's Mod Wiki

GM:SetupPlayerVisibility

  GM:SetupPlayerVisibility( Player ply, Entity viewEntity )

Description

Allows you to add extra positions to the player's PVS (Potential Visibility Set). This is the place to call AddOriginToPVS.

Arguments

1 Player ply
The player
2 Entity viewEntity