# Why there is a message type node for invoking interface in BP

**URL:** <https://forums.unrealengine.com/t/why-there-is-a-message-type-node-for-invoking-interface-in-bp/541806>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [April 28, 2022, 9:06am UTC](https://forums.unrealengine.com/t/why-there-is-a-message-type-node-for-invoking-interface-in-bp/541806 "2022-04-28T09:06:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanxu101](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hanxu101](https://forums.unrealengine.com/u/hanxu101)\
**Post date:** [April 28, 2022, 9:06am UTC](https://forums.unrealengine.com/t/why-there-is-a-message-type-node-for-invoking-interface-in-bp/541806/1 "2022-04-28T09:06:32Z")

</div>

Say we have a Blueprint Interface “MyInterface” , which decalres an interface “InterfaceFunc1”. And it seems the “correct” way to use it is: link a “message” type function call, no matter the target implements “MyInterface” or not:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/4/804d62d6061e8ec4c6afdd3a5406140697cd994a.png)  
This is confusing from user’s aspect, especiall programmer. And this is what it should be from a programmer’s instinct: Use a castTo Node and then do a common function call  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/8/5a8629a10f50c1e4c2c42c0a081c56831dc90d13.png)  
so, why UE don’t use StandardMacro/Functions to fullfill this eyecandie as usual, but create a new Message concept? especiall, the “Event” concept in BP is already messy.

---

<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:** [April 28, 2022, 9:10am UTC](https://forums.unrealengine.com/t/why-there-is-a-message-type-node-for-invoking-interface-in-bp/541806/2 "2022-04-28T09:10:31Z")

</div>

The whole point of the interface message, is that you can call it on an actor without knowing what kind of actor it is, or even if it implements the interface.

Loose coupling. No assumptions.

---

<div class="post-metadata">

**Author:** ![hanxu101](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hanxu101](https://forums.unrealengine.com/u/hanxu101)\
**Post date:** [April 28, 2022, 9:19am UTC](https://forums.unrealengine.com/t/why-there-is-a-message-type-node-for-invoking-interface-in-bp/541806/3 "2022-04-28T09:19:53Z")

</div>

thank you for replying 🙂  
but what the “message” node do behind the curtain, is just automatcally create the “CastToMyInterface” node for you. which means adding a new “message” concept just saves single one node. is it worthy? and for saving node creating, there is already “Macro”.  
this is what i’m confusing.

---

<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:** [April 28, 2022, 9:24am UTC](https://forums.unrealengine.com/t/why-there-is-a-message-type-node-for-invoking-interface-in-bp/541806/4 "2022-04-28T09:24:33Z")

</div>

It has to cast to check it can send the message.

But it’s better in BP to hide the cast, because BP already introduces a lot of bad programming habits.

The moment you let people cast to the interface in BP, 99.9% of them will just cast to the receiver, not understanding that this negates the whole point of the interface.

In BP, you have ‘DoesImplementInterface’, which is basically the cast.
