Wait until a custom event finishes before the function that has called continues its execution

Hi!

I’m wondering if there is a way to wait until a custom event finishes before the function that has called continues its execution:

Do you know if it is possible to do it?

Thanks!

Because Blueprint Functions cannot pause across multiple frames, move the nodes from your original function into the Event Graph. Functions execute completely within a single frame, whereas Custom Events are asynchronous.

The simplest way to do this is to create an Event Dispatcher. Call it when the timeline finishes executing.

To handle an event, you need to bind a function. When the event occurs, the bound function will be executed.