audio.position

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

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

Parameters:
Name Type Attributes 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.

id number

<optional>

the sound instance ID. If none is passed, all sounds in group will be changed.

Returns:
Type Description
Array

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

Powered by webdoc!