Garry's Mod Wiki

CRecipientFilter:RemovePVS

CRecipientFilter:RemovePVS

  CRecipientFilter:RemovePVS( Vector pos )

Description

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

Arguments

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

Example

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.

Special Pages


Wikis

?

Render Time: 60ms

DB GetPage 38
Generate Html 2
SaveChanges (1) 11
Render Body 0
Render Sidebar 6