Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes

Hi guys,

I'm creating a project with Wwise and Unity integrated.

I'm trying to create some 'ambient' dialogue coming from NPCs in game so that they are just going about their days and the player happens to come across their conversations. I want the dialogue to trigger when the player comes into range, and to be spatially fixed to the NPC so that when the player moves, the dialogue gets quieter and pans etc as it would in real life when hearing someone talk while you moved past them.

I have currently got the following set up on my NPC Game Object: 

Sphere Collider - (set to "Is Trigger" for triggering dialogue when main character gets near) with a radius of 10

AkBank - Load on: AkTriggerEnter - Unload on: AkTriggerExit - Asynchronous: no - Decode compressed data: no - Name: Dialogue 

AkAmbient - Trigger on: AkTriggerEnter - Use Other Object: no - Action on Event: no - Use Callback: no Position type: Simple_Mode Show Attenuation Sphere: Current_Event_Only Name: Jam_Donut_Laughing_Dialogue (lol)

Ak Trigger Enter (Script) - Script: AkTriggerEnter - Trigger Object: FPSController

Ak Trigger Exit (Script) - Script: AkTriggerExit - Trigger Object: FPSController

AkGameObj - Apply Position Offset: no - Environment Aware: Yes - Use Default Listeners: Yes

 

So far as I can tell, I have everything set up correctly, (I can more or less verify this because I have torches throughout the level which are set up with the same Attenuation ShareSet and work perfectly, they pan/react positionally based on where the player camera moves.) however when I go into play mode, the dialogue event I've set up triggers when the player gets close and disengages when they leave as intended, but the audio just follows the main camera and doesn't seem to be attached to the NPC whatsoever. Can anyone shed any light on this? I'm new to both Unity and Wwise and am finding myself troubleshooting more than actually doing any work!

Any help would be greatly appreciated.

 

Many thanks

in General Discussion by Matthew T. (110 points)

Please sign-in or register to answer this question.

...