# Referencing and changing the variable in a different object

**URL:** <https://forums.unrealengine.com/t/referencing-and-changing-the-variable-in-a-different-object/16556>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [December 5, 2014, 5:03pm UTC](https://forums.unrealengine.com/t/referencing-and-changing-the-variable-in-a-different-object/16556 "2014-12-05T17:03:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![goofy\_the\_dog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@goofy\_the\_dog](https://forums.unrealengine.com/u/goofy_the_dog)\
**Post date:** [December 5, 2014, 5:03pm UTC](https://forums.unrealengine.com/t/referencing-and-changing-the-variable-in-a-different-object/16556/1 "2014-12-05T17:03:57Z")

</div>

Hey fellow forumers!  
Ive this weird problem here, pretty much what I want to do, is that when my character comes into collision with a score point (for now just a standard sphere mesh) I want my character’s score to be raised by one.  
Here’s my Blueprint for now… I am doing the code in the score object. Help! And of course Thank you very much

 ![important.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/7/f170d117676052bbb829ab4647e8f88efecefb8b.png)

Kind Regards!

---

<div class="post-metadata">

**Author:** ![ruohki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ruohki](https://forums.unrealengine.com/u/ruohki)\
**Post date:** [December 5, 2014, 5:05pm UTC](https://forums.unrealengine.com/t/referencing-and-changing-the-variable-in-a-different-object/16556/2 "2014-12-05T17:05:24Z")

</div>

Did you set up the collisions to overlap?

---

<div class="post-metadata">

**Author:** ![Tearl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tearl](https://forums.unrealengine.com/u/Tearl)\
**Post date:** [December 5, 2014, 5:11pm UTC](https://forums.unrealengine.com/t/referencing-and-changing-the-variable-in-a-different-object/16556/3 "2014-12-05T17:11:42Z")

</div>

Hook up your execute nodes from your cast to your set

---

<div class="post-metadata">

**Author:** ![goofy\_the\_dog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@goofy\_the\_dog](https://forums.unrealengine.com/u/goofy_the_dog)\
**Post date:** [December 5, 2014, 5:31pm UTC](https://forums.unrealengine.com/t/referencing-and-changing-the-variable-in-a-different-object/16556/4 "2014-12-05T17:31:56Z")

</div>

Thank you very much 🙂 Everything work perfectly now! ;D  
Kind Regards!  
Edit/ Yes I had the overlap all function ticked, the problem was with the cast-set nodes not being connected.

---

<div class="post-metadata">

**Author:** ![ruohki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ruohki](https://forums.unrealengine.com/u/ruohki)\
**Post date:** [December 5, 2014, 6:27pm UTC](https://forums.unrealengine.com/t/referencing-and-changing-the-variable-in-a-different-object/16556/5 "2014-12-05T18:27:57Z")

</div>

lol i thought it was on purpose 😃

---

<div class="post-metadata">

**Author:** ![Jak\_Carver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jak\_Carver](https://forums.unrealengine.com/u/Jak_Carver)\
**Post date:** [December 5, 2014, 7:35pm UTC](https://forums.unrealengine.com/t/referencing-and-changing-the-variable-in-a-different-object/16556/6 "2014-12-05T19:35:06Z")

</div>

are you serious? lol
