Garry's Mod Wiki

Garry's Mod Wiki

  CRecipientFilter:AddPVS( Vector Position )

Description

Adds all players that are in the same PVS (Potential Visibility Set) as this position.

Arguments

1 Vector Position
PVS position that players may be able to see.

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 ) ) net.Start( "message" ) net.Send( filter ) end
Output: Sends a net message to every player visible from 0,0,0

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...