Garry's Mod Wiki

Revision Difference

GM:SetupPlayerVisibility#511180

<function name="SetupPlayerVisibility" parent="GM" type="hook">⤶ <ishook>yes</ishook>⤶ <description>Allows you to add extra positions to the player's PVS. This is the place to call <page>Global.AddOriginToPVS</page>.</description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="ply" type="Player">The player</arg>⤶ <arg name="viewEntity" type="Entity">Players &lt;page&gt;Player:GetViewEntity&lt;/page&gt;</arg>⤶ </args>⤶ </function>⤶ ⤶