Skip to content

SetVoiceRange

How far a voice carries by default, in metres.

The server relays a voice to the players within this distance of the talker, and every client sets its 3D falloff from it: full level within the first metre, fading to silence at the range. 0 switches the voice chat off for everyone (a player with an own range through SetPlayerVoiceRange still carries). The change reaches every client at once. The start value is [voice] range in server.toml (25).

SetVoiceRange(metres)
Parameter Type
metres number the range; 0 = off
-- a whispering gallery: nobody carries further than 8 m
SetVoiceRange(8)

GetVoiceRange · SetPlayerVoiceRange · the Voice chat group of the index