Garry's Mod Wiki

AddOriginToPVS

AddOriginToPVS( Vector position )

Description

Adds the specified vector to the PVS which is currently building. This allows all objects in visleafs visible from that vector to be drawn.

Arguments

1 Vector position
The origin to add.

Example

Adds an RTCamera's current position to all player's PVS, causing props near it to always render on an rtscreen

hook.Add("SetupPlayerVisibility", "AddRTCamera", function(pPlayer, pViewEntity) -- Adds any view entity if (pViewEntity:IsValid()) then AddOriginToPVS(pViewEntity:GetPos()) end end)

Page Links


Special Pages


Wikis

?

Render Time: 22ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 8
Render Body 0
Render Sidebar 6