Garry's Mod Wiki

CRecipientFilter

List of all possible functions to manipulate Recipient Filters. Can be created with RecipientFilter.

Methods

CRecipientFilter:AddAllPlayers()
Adds all players to the recipient filter.
CRecipientFilter:AddPAS( Vector pos )
Adds all players that are in the same PAS as this position.
CRecipientFilter:AddPlayer( Player Player )
Adds a player to the recipient filter
CRecipientFilter:AddPVS( Vector Position )
Adds all players that are in the same PVS as this position.
CRecipientFilter:AddRecipientsByTeam( number teamid )
Adds all players that are on the given team to the filter.
number CRecipientFilter:GetCount()
Returns the number of valid players in the recipient filter.
table CRecipientFilter:GetPlayers()
Returns a table of all valid players currently in the recipient filter.
CRecipientFilter:RemoveAllPlayers()
Removes all players from the recipient filter.
CRecipientFilter:RemovePAS( Vector position )
Removes all players from the filter that are in Potentially Audible Set for given position.
CRecipientFilter:RemovePlayer( Player Player )
Removes the player from the recipient filter.
CRecipientFilter:RemovePVS( Vector pos )
Removes all players that can see this PVS from the recipient filter.
CRecipientFilter:RemoveRecipientsByTeam( number teamid )
Removes all players that are on the given team from the filter.
CRecipientFilter:RemoveRecipientsNotOnTeam( number teamid )
Removes all players that are not on the given team from the filter.

Page Links


Special Pages


Wikis

?

Render Time: 30ms

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