Garry's Mod Wiki

CRecipientFilter:RemoveAllPlayers

CRecipientFilter:RemoveAllPlayers

  CRecipientFilter:RemoveAllPlayers()

Description

Removes all players from the recipient filter.

Example

Adds all players that can see the origin of the map, removes all players, then adds the first player object to the recipient filter, and sends them a message.

function SendMessage() local filter = RecipientFilter() filter:AddPVS(Vector(0,0,0)) filter:RemoveAllPlayers() filter:AddPlayer(Entity(1)) umsg.Start("message",filter) umsg.End() end
Output: Sends a usermessage to the first player object, if it exists.

Special Pages


Wikis

?

Render Time: 55ms

DB GetPage 30
Generate Html 0
SaveChanges (1) 16
Render Body 0
Render Sidebar 7