Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. 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. (750 points)
Merci, Matthieu!

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