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 to know when a Level Sequence has finished playing?

Is there a "Finished" event for a Level Sequence? Or do I have to check IsPlaying every tick? Or even add a custom track event at the end of each sequence?

Matinee used to have a "Finished" pin on its blueprint controller, but there is no such thing for a sequence.

Thanks.

Product Version: UE 4.12
Tags:
more ▼

asked Jun 11 '16 at 11:03 PM in Blueprint Scripting

avatar image

RicarDog
68 3 5 11

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

4 answers: sort voted first

LevelSequencePlayer has an OnStop event that you can bind to. It's exposed in C++ and BP.

The documentation:

Event triggered when the level sequence player is stopped

That event fires when your sequence finishes playing.

(There's also ones for Play and Pause.)

more ▼

answered Jan 28 '17 at 12:54 AM

avatar image

idbrii
507 5 15 43

avatar image RicarDog Jan 29 '17 at 01:56 AM

Yes, this has been added in 4.14 and is now the proper way to do it.

avatar image TigerFish89 Aug 29 '18 at 08:34 AM

Hi, thanks for your help. But when I looking for code. there is no OnFinish event in engine code. Am I missing? can you describe more?

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

There isn't a "Finished" event. That looks to be an oversight. I've added jira UETOOL-899 and we'll try to get it into the next release. Thanks for pointing it out.

more ▼

answered Jun 13 '16 at 07:06 PM

avatar image

Max.Chen STAFF
2.3k 28 14 68

avatar image UppercutAJ Jul 22 '16 at 03:54 AM

Has this been resolved in 4.12? I am trying to trigger something off the end of a Sequence playing, and was also looking for the equivalent of the Matinee Controller's Finished pin.

avatar image Roel Aug 04 '16 at 03:56 PM

For now I get the sequence length in blueprint and fire an event after a delay with that amount of time. Hacky, but it works.

avatar image lpalbou Nov 15 '16 at 05:58 AM

Nice workaround Roel

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

Hey! I made it like this, hope can help you :)

settimer.png (97.8 kB)
more ▼

answered Aug 16 '16 at 04:01 PM

avatar image

Mapachi_nh_o
6 1

avatar image GuaiamuStudio Oct 02 '18 at 02:49 AM

Thx! It helped me a lot!

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

You can add a custom event at the end of level sequence.

That event will be triggerred once it has come to end.

[1]: /storage/temp/109724-capture.png

capture.png (32.7 kB)
more ▼

answered Oct 05 '16 at 06:54 AM

avatar image

Acu43
41 3 5

avatar image TigerFish89 Aug 29 '18 at 08:46 AM

How can I listen?

avatar image Tuerer Aug 29 '18 at 09:58 AM

It's not an "event" per se, you don't have to listen to it. You just enter its name and create a custom event in the level blueprint with the same name.

(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