# Invoke function of Component on same Actor

**URL:** <https://forums.unrealengine.com/t/invoke-function-of-component-on-same-actor/1295893>\
**Category:** Blueprint\
**Tags:** event-dispatcher, calling-a-function, unreal-engine, Blueprint\
**Created:** [September 14, 2023, 6:24pm UTC](https://forums.unrealengine.com/t/invoke-function-of-component-on-same-actor/1295893 "2023-09-14T18:24:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cuuuuuper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cuuuuuper](https://forums.unrealengine.com/u/Cuuuuuper)\
**Post date:** [September 14, 2023, 6:24pm UTC](https://forums.unrealengine.com/t/invoke-function-of-component-on-same-actor/1295893/1 "2023-09-14T18:24:28Z")

</div>

Hello all, Unity refugee here. I am currently trying to bring over a system I made in Unity over to Unreal to see if switching is viable. While a lot of things I was able to find by looking in the forums, I can’t find any answer to this:

 ![UnrealEquivalentForThis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/2/7d2a97ea7d42b778fd9b5446ecb651424082d30b.png)

I have ActorComponents “Interaction” that correspond to the “Interaction (Script)” in the Screenshot. “Interactable” ActorComponent that holds an array of all Interactions on the Actor and on the Player I have “WorldInteraction” SceneComponent, that invokes the “Interact” function on the “Interactable” with the current index, so which “Interaction” should be triggered.  
Now I want to invoke functions on other components in a generic way, from each “Interaction” Component like I did in Unity in my screenshot. For example I want to add a “Crate” Component that has “Carry” and “Drop” functions, that get triggered when the corresponding “Interaction” triggers them.

But I don’t see a generic way, to Invoke Functions on Components that are on the same actor, without specifying the Component Type(?) beforehand.

Any help would be appreciated 🙂

---

<div class="post-metadata">

**Author:** ![MattG\_ZeroFill](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mattg_zerofill/32/563889_2.png) [@MattG\_ZeroFill](https://forums.unrealengine.com/u/MattG_ZeroFill)\
**Post date:** [September 14, 2023, 7:10pm UTC](https://forums.unrealengine.com/t/invoke-function-of-component-on-same-actor/1295893/2 "2023-09-14T19:10:42Z")

</div>

I would say you should look at creating a BlueprintInterface for interactable function calls. It’s a fairly standard way of creating agnostic functional behavior for Unreal. (Or use a C++ UInterface if you’re porting logic into code).

> **[Blueprint Interface](https://docs.unrealengine.com/5.3/en-US/blueprint-interface-in-unreal-engine/)**
>
> Blueprints that declare functions to define an interface between Blueprints.

---

<div class="post-metadata">

**Author:** ![Cuuuuuper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cuuuuuper](https://forums.unrealengine.com/u/Cuuuuuper)\
**Post date:** [September 14, 2023, 11:56pm UTC](https://forums.unrealengine.com/t/invoke-function-of-component-on-same-actor/1295893/3 "2023-09-14T23:56:34Z")

</div>

Thanks. I will have a look at it.
