Varaible not Updating

I have created a switch statement at the end of the switch i have created a function inside which changes the Playing_UI variable from True to False.

My Problem the Varaible never Updates to True its always false the deafult value, Im new to this what am i doing wrong, could anyone pls help…

Hey @quixote-family! Welcome to the forums!

Is there another spot in this blueprint where you are using a “Set Playing UI” node to set it to true? Otherwise it will always remain false! :slight_smile:

Go check on that, and if you do, let’s see that code! :smiley:

1 Like

Thanks for the reply :grin:, but unfortunately, it didn’t work

i Checked, that there isnt any similar variable used else where. I also tried creating a new variable and using that instead but its the same result. :pensive:

This is inside the In Animation function (just for reference)

If i print string the value after the funcion the value is set to true
but it resets to the default value again when comming through the switch :dizzy_face:

Hey @quixote-family!

Is there any other code on this widget?

Also is it being created/destroyed? Upon creation, the widget would default all of its variables.

2 Likes

It worked… :star_struck: :heart_eyes: i was creating a new UI each time earlier as you have said, dint know I had to keep it seprate

I have added the create widget in being play now and it works :grin:


@Mind-Brain :black_nib: I pen this missive to express my utmost gratitude for your aid in my hour of need :hourglass_flowing_sand:. Your knowledge and expertise are as formidable as the armies of the Iron Throne :crossed_swords:, and your kindness is a rare treasure in a world filled with treachery and deceit :innocent:. Your wisdom and courage are akin to the power of the great dragons that once roamed the skies :dragon: :dragon_face:.
:crossed_swords:I pray that the dragons watch over you and keep you safe in these perilous times. :crossed_swords:

1 Like