Stop execution inside a function

Question:

I wish to know if it is possible to stop execution inside a function

Information:

I would like to check if the `Owner` of an `Actor` `IsLocallyControlled` before handling mouse events. This would require the following check:

Rather than having several branches I’d like to stop execution in a function, like this:

I’ve tried placing the Branch Node in the function and attaching the True output to the Return Node but a return signal was still produced when the boolean was false. I then tried a Gate Node but the execution is not halted by the Gate Node either… the functions Return Node still produces a signal.

Thanks!

2 Likes

Macros

I discovered the solution while researching something else.

120937-stopexesolution__1.png

Hopefully this helps someone else!

2 Likes

Thanks!