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 (Potentially Audible Set) as this position.
CRecipientFilter:AddPVS( Vector Position )
Adds all players that are in the same PVS(Potential Visibility Set) as this position.
CRecipientFilter:AddRecipientsByTeam( number teamid )
Adds all players that are on the given team to the 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: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.