Hey,
I have created a Hovering component for my vehicle using Blueprints and using a Line Trace to apply a force to generate lift. My component works 98% of the time, but sometimes I receive the following error:
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property PrimativeMesh from function: ‘ExecuteUbergraph_HoverComponent_BP’ from node: Add Force at Location in graph: EventGraph in object: HoverComponent_BP with description: Accessed None trying to read property PrimativeMesh
PIE:Error: Error Blueprint Runtime Error: Accessed None trying to read property PrimativeMesh from function: ‘ExecuteUbergraph_HoverComponent_BP’ from node: Add Force at Location in graph: EventGraph in object: HoverComponent_BP with description: Accessed None trying to read property PrimativeMesh
The actor using the component is never destroyed or changed. During BeginPlay the Static Mesh is set by the Pawn class in the component, and for the most part it works fine until enough time has passed it generates this error and the vehicle stops moving an freezes. Is there a reason this is happening? Would the code work better in C++?