Garry's Mod Wiki

CRecipientFilter:AddPVS

CRecipientFilter:AddPVS( Vector Position )

Description

Adds all players that are in the same PVS as this position.

Arguments

1 Vector Position
PVS position.

Example

Adds players that are visible from the origin of the map to a recipient filter, then sends them a message.

function SendMessage() local filter = RecipientFilter() filter:AddPVS( Vector( 0, 0, 0 ) ) umsg.Start( "message", filter ) umsg.End() end
Output: Sends a usermessage to every player visible from 0,0,0

Page Links


Special Pages


Wikis

?

Render Time: 23ms

Session 0
DB GetPage 2
Generate Html 2
SaveChanges 8
Render Body 0
Render Sidebar 9