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.

+6 votes

Is there a way to reset the sequence variation for a sequence container that is "mid-sequence"?

 

Ex. Sequence Container w/ 4 variations in playlist

  • Event plays Sequence Container variation 1
  • Event plays Sequence Container variation 2
  • [MAGIC_HAPPENS_HERE]
  • Event plays Sequence Container variation 1 (instead of  Sequence Container variation 3)

So far, the Break Event Action does not "Reset" the playlist.

 

Thoughts?

-damian

 

in General Discussion by Damian K. (920 points)

3 Answers

+3 votes
Instead of a sequence container, you could use a switch container using an RTPC parameter to control what sound to play. Use an event that does +1 to the RTPC and also plays the switch container. Then have another event that can reset the RTPC value.

I suppose the trade-off is that if your RTPC value is 1, 2, 3, once it gets to 3, you'll also have to manually reset the RTPC unlike with a sequence container which would automatically go back to the beginning. At least they can be the same event though for resetting mid-sequence and resetting at the end.
by Daniel Beck (390 points)
Hey, this is a really cool suggestion and would totally work!
Just implemented it and it works! I want to specify if ever somebody else has the same issue : You're looking to add all of your sounds in a music segment (i.e. = have them play all at once) and then fine tune the volume RTPC of each SFX so that only one plays when RTPC is at 1, at 2, 3 and so forth.
I'd also change the general range of the RTPC you created so that it fits the number of SFX you have to play (i.e. if you have 8 SFX, create a range of 8).

In the event setup, you should be able to "Set Game Parameter". Just pick the RTPC you're using, select "Relative" and set "Game Parameter Value" to 1.
0 votes

By selecting the Game Object scope in the Sequence Container's Property Editor, every game object will have its own playlist context.  You could kill the game object at MAGIC_HAPPENS_HERE, and recreate it.  Don't know if that is feasible for you?

by Bernard R. (Audiokinetic) (35.8k points)
Definitely not ideal to go around destroying game objects. :)

Would be great to have an Event Action to Reset the Playlist!
For reference, this is feature request WG-14398.
Golden! Thanks for logging it!
+2 votes
As of 2015.1.9, an event can be created to reset the playlist.

https://www.audiokinetic.com/library/2015.1.9_5624/?source=Help&id=types_of_event_actions

It would be nice to be able to do this from code without creating a separate event for it (such as through EventAction or ExecuteActionOnEvent) but it appears that can't be done yet.
by Matt J. (350 points)
For me, as of version 2018.1.5 the "Reset_Playlist" event doesn't work at all. Anyone has the same issue?
...