Garry's Mod Wiki

RecipientFilter

  CRecipientFilter RecipientFilter( boolean unreliable = false )

Description

Creates a new CRecipientFilter.

Arguments

1 boolean unreliable = false
If set to true, makes the filter unreliable.

This means, when sending over the network in cases like CreateSound (and its subsequent updates), the message is not guaranteed to reach all clients.

Returns

1 CRecipientFilter
The new created recipient filter.

Example

Example usage of the function

Output:
2 1 = Player [1][Player #1] 2 = Player [2][Player #2]