# Widget cast to charater variable wont set

**URL:** <https://forums.unrealengine.com/t/widget-cast-to-charater-variable-wont-set/437883>\
**Category:** UI\
**Tags:** Variable, cast-to, unreal-engine, Widget, Blueprint, question\
**Created:** [November 18, 2018, 6:21pm UTC](https://forums.unrealengine.com/t/widget-cast-to-charater-variable-wont-set/437883 "2018-11-18T18:21:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Razman27](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/razman27/32/88716_2.png) [@Razman27](https://forums.unrealengine.com/u/Razman27)\
**Post date:** [November 18, 2018, 6:21pm UTC](https://forums.unrealengine.com/t/widget-cast-to-charater-variable-wont-set/437883/1 "2018-11-18T18:21:49Z")

</div>

I have a character select widget and when you choose a class it changes the char model and sets a bool on character to true, but the bool does not set, it will execute every other function but wont set this one variable? im lost why could this be happening? i even added a function in the character bp which executes and changes the model but still wont set the variable if i add it to this function (it does change the char model but wont set the variable to true)

---

<div class="post-metadata">

**Author:** ![Razman27](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/razman27/32/88716_2.png) [@Razman27](https://forums.unrealengine.com/u/Razman27)\
**Post date:** [November 18, 2018, 6:26pm UTC](https://forums.unrealengine.com/t/widget-cast-to-charater-variable-wont-set/437883/2 "2018-11-18T18:26:07Z")

</div>

![259773-error.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/5/c558ca02263cf2065f9137dc2141eb195f43306c.png)

It wont set this variable, i even added it into the function which does execute everything else but setting the variable.

---

<div class="post-metadata">

**Author:** ![Razman27](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/razman27/32/88716_2.png) [@Razman27](https://forums.unrealengine.com/u/Razman27)\
**Post date:** [November 18, 2018, 8:45pm UTC](https://forums.unrealengine.com/t/widget-cast-to-charater-variable-wont-set/437883/3 "2018-11-18T20:45:42Z")

</div>

ok i solved it.

i needed to set the RPC called which wasnt updating the variable to “run on owning client” - it was set to multicast.

 ![259778-error.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/f/1bf82a0aaef1114c495761355c939e4498d0804f.jpeg)
