menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

+6 投票

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

 

分类:General Discussion | 用户: Damian K. (920 分)

3 个回答

+3 投票
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.
用户: Daniel Beck (390 分)
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 投票

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?

用户: Bernard R. (Audiokinetic) (35.8k 分)
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 投票
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.
用户: Matt J. (350 分)
For me, as of version 2018.1.5 the "Reset_Playlist" event doesn't work at all. Anyone has the same issue?
...