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.

Can you trigger an event from a state change in Wwise?

+1 vote
Is it possible to receive a state change and then within wwise trigger an event at the time of that state change? Thanks!
asked Aug 30, 2018 in General Discussion by Graham H. (160 points)

1 Answer

+1 vote
You cannot trigger an event from a state change, but you can trigger a sound's playback using a switch container in continuous mode:
- assign your state group and state to a switch container
- assign the sound you want to trigger to the relevant state in this container
- set the container's Play Mode to continuous

Then at runtime:
- start the switch container early on (maybe from an init event or something), it will be silently waiting
- when your state changes to the desired value, the switch container will play the relevant sound

Hope this helps :)
answered Sep 3, 2018 by Matthieu B. (780 points)
Merci, Matthieu!

That did it. Thank you.
Cool, glad it worked.
...