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"

Play Sequenced Dialogue

Hi,

I have an actor that must play a sequence of dialogues.

alt text

Basically, setOfDialogue is a structure with a context, the dialogue and the target that should play it (location).

It works great but I didn't find any way to know if the previous dialogue as finished playing... So I don't know when I should start the next one... Do I have to set Manually each dialogue length so that I can "wait for second"? ...

Is there any way to know that?

Thanks :3

Product Version: UE 4.10
Tags:
more ▼

asked Jan 26 '16 at 03:06 PM in Blueprint Scripting

avatar image

Crocsx343
32 7 10 11

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

try SpawnDialogue, instead of PlayDialogue, it returns an AudioComponent reference, which allows you to check if it IsPlaying. AudioComponents also allow you to use Stop, so you can allow the player to skip a dialogue before it completes.

more ▼

answered Jan 26 '16 at 06:16 PM

avatar image

ScottSpadea
9.5k 317 202 449

avatar image Crocsx343 Jan 26 '16 at 07:30 PM

But isn't that expensive to spawn an audiocomponent for each dialogue I have? There are no better solution?

avatar image ScottSpadea Jan 26 '16 at 07:51 PM

you will only be playing each dialogue one at a time, and its "fire and forget" which means it deletes itself when complete. its not expensive.

avatar image Crocsx343 Jan 26 '16 at 08:05 PM

That's nice, will try that so, thx <3

(comments are locked)
10|2000 characters needed characters left
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