# the return node is not updating after giving the value once

**URL:** <https://forums.unrealengine.com/t/the-return-node-is-not-updating-after-giving-the-value-once/2386741>\
**Category:** Programming & Scripting\
**Tags:** branch, unreal-engine, question\
**Created:** [March 12, 2025, 3:24pm UTC](https://forums.unrealengine.com/t/the-return-node-is-not-updating-after-giving-the-value-once/2386741 "2025-03-12T15:24:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRANJAL162004](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PRANJAL162004](https://forums.unrealengine.com/u/PRANJAL162004)\
**Post date:** [March 12, 2025, 3:24pm UTC](https://forums.unrealengine.com/t/the-return-node-is-not-updating-after-giving-the-value-once/2386741/1 "2025-03-12T15:24:12Z")

</div>

I’m having a problem with the branch

i am trying to make a outline overlay around the object, when the LineTrace hits the object, it should highlight

i made two separate for enabling and disabling overlay.

the TRUE side is connected to overlay, when the line trace hits it highlights

 ![Screenshot 2025-03-12 203927](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/0/ef06bce3fdb739ff9316510810f0116ed1742d2f.jpeg)

it says “hitting”, means everything is working.

 ![Screenshot 2025-03-12 203940](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/f/e2f23f6c84f82e90be9cccf88a3d4bee7ef874e4.jpeg)

The FALSE side is connected to end overlay, but when the line trace hits it, the function doesn’t call

 ![Screenshot 2025-03-12 203910](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/0/9a096d666535433377fe097e7464f32aa5d71275.jpeg)

It says “NotHitting” means the print screen it working, but the function is not being called.

 ![Screenshot 2025-03-12 203949](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/2/0a2e7c23edf72fcae8952eefecce395b8cb2b382.jpeg)

new to unreal😅, thanks for the help

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [March 12, 2025, 6:11pm UTC](https://forums.unrealengine.com/t/the-return-node-is-not-updating-after-giving-the-value-once/2386741/2 "2025-03-12T18:11:46Z")

</div>

The targets are the hit actor right? Right click on the exposed Hit Actor pin of your line trace node and promote it to a variable. Set that variable to the hit actor **only after the True pin of your Branch node** , and use our new variable as the target when you wanna access it after the False pin.

Hope this helps 😇

---

<div class="post-metadata">

**Author:** ![PRANJAL162004](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PRANJAL162004](https://forums.unrealengine.com/u/PRANJAL162004)\
**Post date:** [March 12, 2025, 6:51pm UTC](https://forums.unrealengine.com/t/the-return-node-is-not-updating-after-giving-the-value-once/2386741/3 "2025-03-12T18:51:37Z")

</div>

its working now thanks,

 ![Screenshot 2025-03-13 002007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/4/c545822d4cf9c9ea4138f91fad5bedef0056dbae.png)

but how it works, i don’t understand 😅

thankyou for your help

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [March 12, 2025, 8:30pm UTC](https://forums.unrealengine.com/t/the-return-node-is-not-updating-after-giving-the-value-once/2386741/4 "2025-03-12T20:30:06Z")

</div>

> [@PRANJAL162004](#):
>
> but how it works, i don’t understand 😅

You were trying to get the hit actor when the line trace wasn’t even hitting anything 🙃

Even if it was hitting something, it wasn’t the actor you were expecting.

This way, we’re saving the last hit actor 😁 _(when your conditions are met)_

---

<div class="post-metadata">

**Author:** ![PRANJAL162004](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PRANJAL162004](https://forums.unrealengine.com/u/PRANJAL162004)\
**Post date:** [March 13, 2025, 7:20am UTC](https://forums.unrealengine.com/t/the-return-node-is-not-updating-after-giving-the-value-once/2386741/5 "2025-03-13T07:20:33Z")

</div>

oh, now get it, thankyou very much

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 12, 2025, 7:21am UTC](https://forums.unrealengine.com/t/the-return-node-is-not-updating-after-giving-the-value-once/2386741/6 "2025-04-12T07:21:09Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
