Besides, I also get a bp runtime error: Accessed None trying to read property CallFunc_BreakHitResult_HitActor1 from function: ‘ExecuteUbergraph_BP_MotionController’ from node: DestroyActor in graph: EventGraph in object: BP_MotionController with description: Accesed None trying to read property CallFunc_BreakHitResult_HitActor1.
However, it works. What is going on there?
I added the blueprint. Input and condition don’t seem to be the problem.
Edit: Well, seems like I solved the problem with the error.
Apparently DestroyActor only works if I have a proper target (an actor). If it’s not a proper target, then the target is empty, so DestroyActor can’t be executed. I just used Return Value of the LineTrace for a branch before the DestroyActor function, so this function is only called when there is a valid hit.