# Problem getting owner of actor component

**URL:** <https://forums.unrealengine.com/t/problem-getting-owner-of-actor-component/1288831>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [September 9, 2023, 8:57am UTC](https://forums.unrealengine.com/t/problem-getting-owner-of-actor-component/1288831 "2023-09-09T08:57:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![carmanfer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@carmanfer](https://forums.unrealengine.com/u/carmanfer)\
**Post date:** [September 9, 2023, 8:57am UTC](https://forums.unrealengine.com/t/problem-getting-owner-of-actor-component/1288831/1 "2023-09-09T08:57:58Z")

</div>

Hello,

I have a BP Interface for interactable items:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/4/884e1d76197c0533cada00a1b672434dd21dd2dc.png)  
And I have called this interface function in an actor component:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/6/fb65f8c1b47ea89c29f851ca4f5a963bfef327ab.png)  
Then I have added this actor component to an actor blueprint (a weapon that can be picked up):  
 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/e/fee7f6e0fb57e3faf2a3bcea12d44d0979cc6807.png)

And this is the logic to interact in the character BP:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/b/38bacbdcf571115e9dc46c27a5ff9faf64081796.png)  
The error is:  
“Blueprint Runtime Error: “Accessed None trying to read property CallFunc\_BPI\_Function\_Interact\_Interactable\_Reference”. Node: Attach Actor To Component Graph: EventGraph Function: Execute Ubergraph BP Cooper Blueprint: BP\_Cooper”

I guess the component is not referencing its owner well? What do I do?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 9, 2023, 9:46am UTC](https://forums.unrealengine.com/t/problem-getting-owner-of-actor-component/1288831/2 "2023-09-09T09:46:17Z")

</div>

The component implements the interface, and returns the parent actor.

But… this already IS the parent actor 🙂

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/6/4d6f304314c9a3341df187097e53cb3c1ff81e52.jpeg)

No?

Also, the actor does not implement the interface.

---

<div class="post-metadata">

**Author:** ![carmanfer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@carmanfer](https://forums.unrealengine.com/u/carmanfer)\
**Post date:** [September 9, 2023, 9:49am UTC](https://forums.unrealengine.com/t/problem-getting-owner-of-actor-component/1288831/3 "2023-09-09T09:49:17Z")

</div>

Okay I have gotten rid of Interactable Reference variable and I have simply attached the Hit Actor to the attach actor to component. Now I can pick up the weapon.

The sword actor BP does not implement the interface, the actor component that is attached to it does. Do I have to make the sword actor BP implement it too?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 9, 2023, 9:52am UTC](https://forums.unrealengine.com/t/problem-getting-owner-of-actor-component/1288831/4 "2023-09-09T09:52:01Z")

</div>

There’s a discussion about it here

> [@Blueprint interface VS ActorComponent, The Good And The Bad](https://forums.unrealengine.com/t/blueprint-interface-vs-actorcomponent-the-good-and-the-bad/506136):
>
> Long question short, are blueprint interfaces still relevant when we can extend Actor logic through ActorComponents? Some time ago I started programming a system which lets Actors interact with the environment, so they can pick up ‘items’, read text written on walls or contained by book Actors, drink water and talk to NPCs. All combined, an interaction system can become quite large. The logic for this interaction system was written in an ActorComponent, which is added to a Pawn so the Pawn can…

A quick experiment will tell you the answer. I have a feeling the actor needs to implement the interface, but could be wrong…

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 9, 2023, 9:55am UTC](https://forums.unrealengine.com/t/problem-getting-owner-of-actor-component/1288831/5 "2023-09-09T09:55:46Z")

</div>

I just checked it. An actor component can’t implement an interface for an actor BP.

---

<div class="post-metadata">

**Author:** ![carmanfer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@carmanfer](https://forums.unrealengine.com/u/carmanfer)\
**Post date:** [September 9, 2023, 10:02am UTC](https://forums.unrealengine.com/t/problem-getting-owner-of-actor-component/1288831/6 "2023-09-09T10:02:04Z")

</div>

But my actor component only returns information about the owner of that component. And this happens when the interface message is sent from the character BP to the component. So I don’t need the sword actor BP to receive listen to the interface, right?

Maybe I should just do inheritance and implement the interface directly in the master (parent) actor blueprint of all the childs (the different interactable items).

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 9, 2023, 10:09am UTC](https://forums.unrealengine.com/t/problem-getting-owner-of-actor-component/1288831/7 "2023-09-09T10:09:43Z")

</div>

> [@carmanfer](#):
>
> implement the interface directly

I would probably be cleaner. Otherwise you have to search the components to find if any of them implement the interface

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/8/3e852904f0a949f3df62e774da5a59a326045b09.png)
