Garry's Mod Wiki


CRecipientFilter:RemovePVS( Vector pos )


Removes all players that can see this PVS from the recipient filter.


1 Vector pos
Position that players may be able to see.


Adds the first player object to the recipient filter, then sends him a message.

function SendMessage() local filter = RecipientFilter() filter:AddPVS( Vector( 0,0,0 ) ) filter:RemovePVS( Vector( 0,10,0 ) ) umsg.Start( "message", filter ) umsg.End() end
Output: Adds all players that can see the map's origin to the recipient filter, then removes all players who can see 10 units to the left of the origin, and sends the rest a message.

Page Links

Special Pages



Render Time: 80ms

DB GetPage 50
Generate Html 4
SaveChanges (1) 11
Render Body 0
Render Sidebar 14