ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setSoundMinDistance

Function

setSoundMinDistance

ClientSound (client)Identical to MTA:SA

Sets the distance up to which a 3D sound plays at full volume (5 m by default). The maximum distance grows if needed.

Syntax

bool setSoundMinDistance(sound theSound, float distance)

Arguments

theSoundsound
The sound.
distancefloat
Metres, from 0.

Returns

true on success.

Example

setSoundMinDistance(radio, 10)

See also