SetPlayerVoiceRange
One player’s own voice range in metres; 0 = the default again.
A town crier heard across the square, a conspirator heard at arm’s length. The range applies to that player’s voice alone (how far others hear them, not how far they hear); every client is told.
Syntax
Section titled “Syntax”SetPlayerVoiceRange(pid, metres)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
metres |
number | their range; 0 = the server’s default |
Returns
Section titled “Returns”boolean: false for an unknown player
Example
Section titled “Example”-- the herald is heard across the whole campSetPlayerVoiceRange(herald, 80)See also
Section titled “See also”GetPlayerVoiceRange · SetVoiceRange · the Voice chat group of the index
