Function orientation

  • Get/set the direction the audio source is pointing in the 3D cartesian coordinate space. Depending on how direction the sound is, based on the cone attributes, a sound pointing away from the listener can be quiet or silent.

    Parameters

    • sound_name: string

      audio clip name - case sensitive

    • x: number

      the x-orientation of the audio source.

    • y: number

      the y-orientation of the audio source.

    • z: number

      the z-orientation 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 orientation: [x, y, z]