Function position

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

    Parameters

    • 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.

    • Optionalid: number

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

    Returns any[]

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