Garry's Mod Wiki

CRecipientFilter:AddPlayer

CRecipientFilter:AddPlayer( Player Player )

Description

Adds a player to the recipient filter

Arguments

1 Player Player
Player to add to the recipient filter.

Example

Adds the first player object to the recipient filter, then sends him a message.

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

Page Links


Special Pages


Wikis

?

Render Time: 53ms

DB GetPage 27
Generate Html 2
SaveChanges (1) 10
Render Body 0
Render Sidebar 12