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.

This hook is called every tick for each player! Ensure that your code is performant!

Arguments

1 Player ply
The player
2 Entity viewEntity