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

Function

getSoundPosition3D

ClientAudioTrilogy Hub only

Returns the world point where a 3D sound plays. getElementPosition on the sound returns the same.

Syntax

float getSoundPosition3D(sound theSound)

Arguments

theSoundsound
A 3D sound.

Returns

x, y, z or false.

Example

local x, y, z = getElementPosition(radio)

Notes

Use getElementPosition. In the current version this function does not accept sound elements from playSound3D.

See also