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
Using Wwise 2021.1.5.

I need to have the trigger rate of a Random Container be controlled by an RTPC that is set inside of Unity.  Specifically, the RTPC is being set according the the Y velocity of an enemy's movement.

I have a solution, but it's not quite working the way I'd like.  Currently, in the General Settings of the Random Container I've set the Play Mode options as follows:

-Continuous

-Loop: Infinite

-Transition: Trigger Rate, Duration is controlled by the RTPC

In theory, this should work.  However the issue is that when the duration is at it's lowest point (once every 2.85 seconds) and then jumps up to a higher value (once every .3 seconds), the trigger seems to be waiting until the 2.85 seconds finishes before beginning to trigger at the new rate.  This causes inconsistent playback in the game where the RTPC is being updated constantly due to the enemy quickly changing directions.

Is there a way to force the trigger rate to immediately respond or override the previous duration for the new one?  If not, is there a better solution for this in Wwise?  I'd love to handle this in Wwise rather than running a Coroutine in Unity.

Cheers!
in General Discussion by Brian A. (100 points)

Please sign-in or register to answer this question.

...