CRecipientFilter.RemovePlayer

From GMod Wiki

Jump to: navigation, search
Function
Syntax CRecipientFilter:RemovePlayer( Player player )
Description:
Removes player from the recipient filter
Returns: nil
In Object: CRecipientFilter
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CRecipientFilter.RemovePlayer]CRecipientFilter.RemovePlayer [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAdds then removes Player 1, Adds then removes all players, Adds then removes all player that can potentially be seen from Player 2
Used onNewerServer.png
Code
 
PL1 = player.GetByID(1)
PL2 = player.GetByID(2)
RP = RecipientFilter()
RP:AddPlayer( PL1 )
RP:RemovePlayer( PL1 )
RP:AddAllPlayers()
RP:RemoveAllPlayers()
RP:AddPVS( PL2 )
RP:RemovePVS( PL2 )
 
OutputN/A

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox