- Documentation
- Client functions
- getSoundPosition3D
Function
getSoundPosition3D
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.