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.
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. |
Type | Description |
---|---|
Array |
the current 3D spatial position: [x, y, z] |