Call with just sound_name to read back the group's current
position; call with x (and optionally y / z / id) to write
it. Missing y / z default to 0 and -0.5 respectively.
Param: sound_name
Audio clip name (case-sensitive).
Param: x
X-coordinate of the audio source. Omit to read.
Param: y
Y-coordinate. Defaults to 0 when setting.
Param: z
Z-coordinate. Defaults to -0.5 when setting.
Param: id
Sound instance ID. When omitted, all sounds in the group
are affected.
Returns
The current [x, y, z] when called as a getter; nothing
when called as a setter.
Get or set the 3D spatial position of a sound.
Call with just
sound_nameto read back the group's current position; call withx(and optionallyy/z/id) to write it. Missingy/zdefault to0and-0.5respectively.Param: sound_name
Audio clip name (case-sensitive).
Param: x
X-coordinate of the audio source. Omit to read.
Param: y
Y-coordinate. Defaults to
0when setting.Param: z
Z-coordinate. Defaults to
-0.5when setting.Param: id
Sound instance ID. When omitted, all sounds in the group are affected.
Returns
The current
[x, y, z]when called as a getter; nothing when called as a setter.