From Garry's Mod
Removes all players that can see this PVS from the recipient filter.
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
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.