Trying to call a function in parent blueprint from child blueprint

Hey there

I’m trying to call a function that is in the parent blueprint from one of the child blueprints but running into an error

“Blueprint Runtime Error: “Accessed None trying to read property testFunctionRef”. Node: Test Function Graph: EventGraph Function: Execute Ubergraph BP Trebuchet-wheel Blueprint: BP_trebuchet-wheel”

Here is a quick video of the bug and the error

1 Like

If the wheel is attached to the trebuchet via a Child Actor Component:

  • in the wheel:

There’s no need to create a reference. If you must create a hard reference to the actor owning the wheel, create one like so:

1 Like

Ahh magic!

Yes that makes perfect sense and works like a dream

Thank you thank you thank you :slight_smile:

1 Like