x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How can I open a level after a sound cue finishes playing?

Hi there, so here is the situation: I have an object with a trigger volume. after I enter the trigger, the object starts playing a sound cue. What I need is that, after this sound ends (note that I have 9 different sounds with various durations and the play randomly when I enter the trigger), the player is transported to a new level (which I have). How Can I make this work with blueprints?

Product Version: UE 4.13
Tags:
more ▼

asked Feb 09 '17 at 09:14 PM in Blueprint Scripting

avatar image

Blanco253
1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

instead of a sound cue, use an array of sound waves. then you can get their duration.

alt text

more ▼

answered Feb 10 '17 at 12:17 AM

avatar image

ScottSpadea
9.6k 320 205 449

avatar image Blanco253 Feb 10 '17 at 02:08 AM

Nice!! I'll try it out! thank you so much!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Current UE4 sound system is so primitive that it does not even track head of played sound, so it not even possible to implement such events in C++ so there nothing in blueprint either. The new sound system (watch last week stream to hear about it) is hell lot of better and it should solve your issue, in mean time you are forced to use some timer system on your own which sadly can go desync when engine might lag (like 5FPS limit when you minimize editor, desyuncs engine timers with sound system imidietly), but generally you should not really care about it, if sound will delay once in a while it should not be game breaker.

more ▼

answered Feb 09 '17 at 11:12 PM

avatar image

Shadowriver
36.7k 932 169 1111

avatar image Blanco253 Feb 10 '17 at 02:08 AM

Wow! Thanks! I'm gonna check it out!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question