audio.position

position(sound_name: string, x: Number, y: Number, z: Number) → {Array}

get or set the 3D spatial position for the specified sound.

Parameters:
Name Type Description
sound_name string

audio clip name - case sensitive

x Number

the x-position of the audio source.

y Number

the y-position of the audio source.

z Number

the z-position of the audio source.

Returns:
Type Description
Array

the current 3D spatial position: [x, y, z]

Powered by webdoc!