Force function to finish first
So I´m currently getting some errors and the only thing that would explain this is that the function gets called, but the execution pin instantly continues without waiting the function to be finished... Or am I missing something here? Do I really have to use event dispatchers so I can be sure the function has finished?
asked Mar 11 '19 at 03:29 PM in Blueprint Scripting
It's because that's not a function, it's an event. A function is denoted by an "f" instead of an arrow.
When an event is triggered the event calculates seperate from the event chain that triggered it. It does not need to be completed for the original event chain to continue down its path. If you need calculations to finish before moving on, you either use a function, an event for moving on or a variable.
So in this case, end the execution event at Cleanup Folder. Add an event called "Continue" for example and plug that into the first branch in "Geometry". At the end of Cleanup Folder add a call to that event.
Here's a visual representation of that:
Follow this question
Once you sign in you will be able to subscribe for any updates here