# Blueprint interface doesn't seem to work.

**URL:** <https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317>\
**Category:** UI\
**Tags:** interfaces, unreal-engine, UE4, Blueprint, question\
**Created:** [March 17, 2015, 3:21am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317 "2015-03-17T03:21:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_06824164](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06824164](https://forums.unrealengine.com/u/anonymous_user_06824164)\
**Post date:** [March 17, 2015, 3:21am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/1 "2015-03-17T03:21:31Z")

</div>

First Actor

[http://puu.sh/gDCi4/9a2ec411f6.png](http://puu.sh/gDCi4/9a2ec411f6.png)

Second Actor

[http://puu.sh/gDCj9/984404fa50.jpg](http://puu.sh/gDCj9/984404fa50.jpg)

I am trying to Print the boolean’s value set by the second actor from the first actor using a blueprint interface. Both actors have the interface implemented.  
Maybe I’m not understanding how interfaces work at all, but “Event Build Phase” isn’t even being fired.

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [March 17, 2015, 3:28am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/2 "2015-03-17T03:28:19Z")

</div>

Sometimes you need to recompile both Blueprints after implementing the Interface.  
And of course it won’t run on the actor you want; look at that:  
“Target [self]”  
You must insert there to that pin a reference to the actor you want to call the custom event. Not ‘self’.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_06824164](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06824164](https://forums.unrealengine.com/u/anonymous_user_06824164)\
**Post date:** [March 17, 2015, 3:39am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/3 "2015-03-17T03:39:00Z")

</div>

I guess I’m not really following you on the target, I’ve tried the pin as both the interface reference, and the other actor reference, and neither have worked.

---

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [March 17, 2015, 4:13am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/4 "2015-03-17T04:13:57Z")

</div>

In your second picture(in the OP), you are calling the function ‘Build Phase’ on the second actor itself (see Target = self). So the boolean is set on the Second actor NOT the first one. Inroder to change the value on First actor, you should first get a reference to the first Actor, then call the function ‘Build Phase’ with the reference to first Actor connected to the Target pin.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_06824164](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06824164](https://forums.unrealengine.com/u/anonymous_user_06824164)\
**Post date:** [March 17, 2015, 4:30am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/5 "2015-03-17T04:30:07Z")

</div>

I believe this is what you’re describing?  
Other BP Ref is a reference to the first actor

This does not work.

---

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [March 17, 2015, 5:37am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/6 "2015-03-17T05:37:05Z")

</div>

Do you get any errors?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_06824164](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06824164](https://forums.unrealengine.com/u/anonymous_user_06824164)\
**Post date:** [March 17, 2015, 5:38am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/7 "2015-03-17T05:38:46Z")

</div>

No, the event is just not firing in the first actor.

---

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [March 17, 2015, 5:46am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/8 "2015-03-17T05:46:47Z")

</div>

Are you sure the reference to the first actor is valid at the time of call. Could you use ‘Is Valid’ node before calling the function and check if that is the case?

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [March 17, 2015, 6:25am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/9 "2015-03-17T06:25:20Z")

</div>

You are using the Local method and attaching the other actor’s reference to it. It won’t work either;  
Drag from the other actor’s reference and search for Event Build Phase(message). The correct event to call is the one that has a mail icon, like this one upper node:

[http://i1234.photobucket.com/albums/ff408/BrUnOXaVIeR/UEMessage\_zpsrlbrvf22.jpg~original](http://i1234.photobucket.com/albums/ff408/BrUnOXaVIeR/UEMessage_zpsrlbrvf22.jpg~original)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_06824164](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06824164](https://forums.unrealengine.com/u/anonymous_user_06824164)\
**Post date:** [March 17, 2015, 6:36am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/10 "2015-03-17T06:36:42Z")

</div>

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/6/216c2024cdea9ac3c5f812233a27a8249fa5f9c5.png)  
It’s not an option?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_06824164](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06824164](https://forums.unrealengine.com/u/anonymous_user_06824164)\
**Post date:** [March 17, 2015, 6:37am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/11 "2015-03-17T06:37:01Z")

</div>

It is valid.

---

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [March 17, 2015, 6:41am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/12 "2015-03-17T06:41:23Z")

</div>

Select Build Phase (Interface call)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_06824164](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06824164](https://forums.unrealengine.com/u/anonymous_user_06824164)\
**Post date:** [March 17, 2015, 6:42am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/13 "2015-03-17T06:42:31Z")

</div>

Didn’t work.

---

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [March 17, 2015, 7:17am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/14 "2015-03-17T07:17:53Z")

</div>

Can you post a screenshot of your current setup (with Interface call)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_06824164](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06824164](https://forums.unrealengine.com/u/anonymous_user_06824164)\
**Post date:** [March 17, 2015, 7:21am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/15 "2015-03-17T07:21:37Z")

</div>

Yeah no problem.

This is the second actor, intended to set the boolean:

This is the first actor, intended to receive the boolean and then print it:

and this is the interface blueprint:

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [March 17, 2015, 7:22am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/16 "2015-03-17T07:22:21Z")

</div>

Then there’s something wrong with the Interface implementation.  
If _Other BP Ref_ is of type **Actor** , the (message) node should appear when you drag a pin from it. If it’s not a component of type Actor, correct that; You don’t need to cast to call the message, just need to be an Actor variable.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_06824164](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06824164](https://forums.unrealengine.com/u/anonymous_user_06824164)\
**Post date:** [March 17, 2015, 7:34am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/17 "2015-03-17T07:34:42Z")

</div>

I think I understand you, and I did fix it to use message  
but this still does not send the boolean.

[http://puu.sh/gDOKN/e18a64b08d.jpg](http://puu.sh/gDOKN/e18a64b08d.jpg)

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [March 17, 2015, 8:47am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/18 "2015-03-17T08:47:40Z")

</div>

Did you assign the value for _Other BP Ref_ ?  
Check if it is valid. Also test a bool variable passing by reference…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_06824164](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_06824164](https://forums.unrealengine.com/u/anonymous_user_06824164)\
**Post date:** [March 17, 2015, 9:32am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/19 "2015-03-17T09:32:48Z")

</div>

So it’s reporting as not valid, with the error

[http://puu.sh/gDSZ3/2d07af9824.png](http://puu.sh/gDSZ3/2d07af9824.png)

this is how the variable is set, Test build wall being the other blueprint

[http://puu.sh/gDT1e/06949a549a.png](http://puu.sh/gDT1e/06949a549a.png)

---

<div class="post-metadata">

**Author:** ![mindfane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mindfane/32/710746_2.png) [@mindfane](https://forums.unrealengine.com/u/mindfane)\
**Post date:** [March 17, 2015, 9:47am UTC](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317/20 "2015-03-17T09:47:58Z")

</div>

You havent assigned anything to it. You just defined a variable named ‘Other BP Ref’ and said its of type ‘Test Build Wall’, but it is not pointing to an instance yet.

You need to set this variable to an instance of ‘Test Build Wall’ before you could access it

[Next page](https://forums.unrealengine.com/t/blueprint-interface-doesnt-seem-to-work/311317.md?page=2)
