# Error from branch node

**URL:** <https://forums.unrealengine.com/t/error-from-branch-node/292628>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 1, 2014, 9:39pm UTC](https://forums.unrealengine.com/t/error-from-branch-node/292628 "2014-09-01T21:39:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Redsett](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Redsett](https://forums.unrealengine.com/u/Redsett)\
**Post date:** [September 1, 2014, 9:39pm UTC](https://forums.unrealengine.com/t/error-from-branch-node/292628/1 "2014-09-01T21:39:49Z")

</div>

I’m getting this error when playing the game. It runs this function just fine still but spams the error even when the function isn’t running.

Any ideas? Thanks!

 ![14332-2014-09-01+14_32_55-basic_pc.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/1/c91943e42f37de2c222430c85a61547853d44d8f.jpeg)

![14333-2014-09-01+14_33_38-message+log.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/1/b11b677b15712fe438cf69491ae47e67f00868ce.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dede2580](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dede2580](https://forums.unrealengine.com/u/anonymous_user_dede2580)\
**Post date:** [September 2, 2014, 8:01am UTC](https://forums.unrealengine.com/t/error-from-branch-node/292628/2 "2014-09-02T08:01:28Z")

</div>

When, and from where, is the “Check if Too Far or Close” function called?

---

<div class="post-metadata">

**Author:** ![xrouter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xrouter](https://forums.unrealengine.com/u/xrouter)\
**Post date:** [September 2, 2014, 9:52am UTC](https://forums.unrealengine.com/t/error-from-branch-node/292628/3 "2014-09-02T09:52:00Z")

</div>

I assume you are doing this from the player controller? Have you hooked up the cast fail to an output to see if it due to that?

Personally I would use an interface to get the data you require as I have fought similar error messages when using casts that I haven’t fully been able to solve, it may be a little more work to setup but I have found it reduces weird problems like this.

---

<div class="post-metadata">

**Author:** ![son1cman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@son1cman](https://forums.unrealengine.com/u/son1cman)\
**Post date:** [September 2, 2014, 9:57am UTC](https://forums.unrealengine.com/t/error-from-branch-node/292628/4 "2014-09-02T09:57:48Z")

</div>

Its not a bug, i have the same error while trying to comunicate between blueprints and figured out that they are not “seeing” eachother, take a look at this posts:

[- YouTube](https://www.youtube.com/watch?v=WwfsWr4A894)

---

<div class="post-metadata">

**Author:** ![Redsett](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Redsett](https://forums.unrealengine.com/u/Redsett)\
**Post date:** [September 2, 2014, 3:12pm UTC](https://forums.unrealengine.com/t/error-from-branch-node/292628/5 "2014-09-02T15:12:56Z")

</div>

I have hooked up a print to the cast fail and it seems to never fail. It actually works perfect every time, getting the correct numbers from the pawn. So it seems to be seeing each other fine,

This is the controller that is getting the “max move distance” from the pawn selected at the time. I generally use this function when the player clicks the ground to move.

I haven’t used interfaces yet, I will look into that. Thanks.
