Node Result uses potentially thread-unsafe call Try Get Pawn Owner

Hello guys,

I’am trying to create movement cycle but stuck at some point and I dont know and understand what is going on. It was just running 1 day ago and now it is creating a error.

At the highlited transitions i am getting an error like this,

This is the compiler result.

I would be very happy if some one can help me, i am kinda stucked at this point and cant go any further

Node Result uses potentially thread-unsafe call Try Get Pawn Owner . Disable threaded update or use a thread-safe call. Function may need BlueprintThreadSafe metadata adding.
Node Result uses potentially thread-unsafe call Try Get Pawn Owner . Disable threaded update or use a thread-safe call. Function may need BlueprintThreadSafe metadata adding.
Node Result uses potentially thread-unsafe call Get Movement Component . Disable threaded update or use a thread-safe call. Function may need BlueprintThreadSafe metadata adding.
Node Result uses potentially thread-unsafe call Try Get Pawn Owner . Disable threaded update or use a thread-safe call. Function may need BlueprintThreadSafe metadata adding.
Node Result uses potentially thread-unsafe call Try Get Pawn Owner . Disable threaded update or use a thread-safe call. Function may need BlueprintThreadSafe metadata adding.

Oh okay i figure it out, thank you anyways.

what was the solution?

Maybe share with the class, yes?

You did not bother to tell us what you did…

In UE5m you must declare your method as thread-safem with BlueprintThreadSafe:

UFUNCTION(BlueprintPure, meta = (BlueprintThreadSafe))

Caution, you have to ensure by yourself that the method is really thread safe, basically just a getter to access a pre-computed value.

1 Like