Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes
I'm new to Wwise, and chose to use it for this project because of the possibility of integrating Pure Data patches via Heavy Audio. So I've made a custom plugin that way, which has a couple of parameters that I want to control in-game. It's for a string that is manipulated in the game and changes its tuning accordingly. I have arbitrarily many instances of this object to each of which I've attached the same event. Now I reach for the functionality that will allow me to feed a value to each of these strings only to find that... Wwise doesn't have it?

From what I understand so far, all of the Game Syncs, and RTPCs in particular, are global variables: once I assign plugin parameters to a Game Parameter, each instance of that Sound SFX will respond in the same way to that Game Parameter.

Is there a way to assign a local parameter, ie. so that my script can say "change this parameter for the Wwise event attached to my gameObject"? Is my only option to create as many Sound SFX, Events, and Game Parameters as there are strings in my game?

If there's a way to do this, I'd love to hear about it urgently. Thanks!
in General Discussion by Nikita G. (100 points)

1 Answer

+3 votes

Via scripts... SetRTPCValue expects 3 arguments: RTPC name or ID, RTPC Value, and GameObjectID. If you leave GameObjectID default, it will set the RTPC globally. If you set GameObjectID to a specific object, it will only affect the RTPC for that game object. 

Via Wwise Authoring... Alternatively, you can create events in Wwise that set RTPC values. If you're using this method, pay close attention to the Event Action that sets the RTPC. It can be set to Global or Game Object under the scope column.

 

Hope this helps :) 

by Ian S. (2.1k points)
...