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

Function

getSoundOcclusion

ClientSound (client)Trilogy Hub only

Trilogy Hub extension: returns how strongly walls between the camera and a 3D sound muffle it. 0 = nothing in the way, 1 = a thick wall with no way around. It changes smoothly.

Syntax

float getSoundOcclusion(sound theSound)

Arguments

theSoundsound
The sound.

Returns

Occlusion 0-1 or false.

Example

if getSoundOcclusion(radio) > 0.5 then
    outputChatBox("Muzyka gra za ścianą")
end

See also