# Setter not working

**URL:** <https://forums.unrealengine.com/t/setter-not-working/410330>\
**Category:** Blueprint\
**Tags:** set, unreal-engine, question, Blueprint\
**Created:** [November 22, 2017, 5:30pm UTC](https://forums.unrealengine.com/t/setter-not-working/410330 "2017-11-22T17:30:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a311757d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a311757d](https://forums.unrealengine.com/u/anonymous_user_a311757d)\
**Post date:** [November 22, 2017, 5:30pm UTC](https://forums.unrealengine.com/t/setter-not-working/410330/1 "2017-11-22T17:30:55Z")

</div>

Ok, so, I’m making a leaderboard, for this I need 4 variables(Top Score1, Top Score2, Top Score3, & Score) The top score variables are found in a widget blueprint called MainMenu and the score variable is found in a Actor blueprint called EndGame, I have these referenced in another widget blueprint called GameWin. I have set up the blueprint and in my eyes, it should be working, the way that I have it is I have a branch, the condition in Score \> Top Score1 if true set Top Score1 to Score, but it is not setting the Top Score. Pic Below:

 ![221121-screenshot-32.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/f/eaf1ef4ba94a1be9664c5bd0606e303b30c5a71a.png)

---

<div class="post-metadata">

**Author:** ![Vaheva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaheva/32/963466_2.png) [@Vaheva](https://forums.unrealengine.com/u/Vaheva)\
**Post date:** [November 22, 2017, 6:39pm UTC](https://forums.unrealengine.com/t/setter-not-working/410330/2 "2017-11-22T18:39:40Z")

</div>

This part of blueprint is correct. However dunno how rest of.

Always use simple debug with Print String. Add it after true and after false with different text - like true/false or what you need, and you will see this branch working or not, maybe problem is before or after this part.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a311757d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a311757d](https://forums.unrealengine.com/u/anonymous_user_a311757d)\
**Post date:** [November 22, 2017, 8:31pm UTC](https://forums.unrealengine.com/t/setter-not-working/410330/3 "2017-11-22T20:31:20Z")

</div>

I tested it with printstring, the score prints correctly but when I print before the set it is 0 like it should be but after the set it is still 0.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a311757d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a311757d](https://forums.unrealengine.com/u/anonymous_user_a311757d)\
**Post date:** [November 22, 2017, 8:35pm UTC](https://forums.unrealengine.com/t/setter-not-working/410330/4 "2017-11-22T20:35:26Z")

</div>

Here are some more pics of the blueprint:

 ![221153-screenshot-33.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/f/a7ffee8f1e79435a342e1cfb196998116f6f24d1.png)

 ![221154-screenshot-34.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/a/38a0f275c4a1891bb0b502ebda2f282f0f389925.png)

 ![221155-screenshot-35.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/8/f484146a97cf804ab5b5a6a6c00d58c6c011999e.png)

---

<div class="post-metadata">

**Author:** ![Vaheva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaheva/32/963466_2.png) [@Vaheva](https://forums.unrealengine.com/u/Vaheva)\
**Post date:** [November 22, 2017, 8:36pm UTC](https://forums.unrealengine.com/t/setter-not-working/410330/5 "2017-11-22T20:36:02Z")

</div>

Now I see, some cast is failed - check where, it can be problem.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a311757d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a311757d](https://forums.unrealengine.com/u/anonymous_user_a311757d)\
**Post date:** [November 22, 2017, 10:31pm UTC](https://forums.unrealengine.com/t/setter-not-working/410330/6 "2017-11-22T22:31:01Z")

</div>

It’s just for the text on the game win screen, completely unrelated.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a311757d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a311757d](https://forums.unrealengine.com/u/anonymous_user_a311757d)\
**Post date:** [November 23, 2017, 1:22am UTC](https://forums.unrealengine.com/t/setter-not-working/410330/7 "2017-11-23T01:22:38Z")

</div>

So, I think I have worked out whats wrong, it’s not letting me edit what Top Score1 is even though it is set to editable, any solutions?
