Setting boolean variable don't work.

Hi
I’m trying to make a countdown widget insert in a actor activated with a button.
I created a collision box and when I should activate the counter widget, the variable <I count> don’t change but the string “you touch starter button” is print in the screen.
I deduce that I am doing something wrong.
How do i get this variable to change in the tick event?
I’ve been fighting for days and I can’t figure out how to make it work.
Could someone help me?
Thank you so much

](filedata/fetch?id=1829657&d=1604612336)
](filedata/fetch?id=1829658&d=1604612340)

Hi man,
add another print in the startcount to print the value of the bool, and be sure that your bool change.
try toggle the value of bool , set false, print, set true print…
check the default value of the bool too.

the variables normally changes and are avaible for everywhere in the blueprint
i cant really think at something that could mess this up…
let me know

Thanks Est_engine

I did what you commented and it didn’t work for me so I decided to try something else.

I finally got it to work for me, I ran everything in the place where I didn’t touch it, now everything works for me, but the widget doesn’t show and update me the evolution of the counter it’s like I didn’t give it the command to render.

I really don’t know where or what blueprint should be used to display the information.

Do you know what the node is to be able to do this?

Add the changes I made.

](filedata/fetch?id=1830154&d=1604772383)
This is the object with a trigger to activate the countdown.
](filedata/fetch?id=1830155&d=1604772386)
This is the widget
](filedata/fetch?id=1830157&d=1604772391)
And I did this in the class with the widget attached

All help is welcome!!!
Thanks in advance.

Did you used somewherelse the add-to-viewport? (i dont see it in the screenshots)
When you create a widget, “it start exist-ing” but you have to explicit add it to the view.

Here the first image in doc
https://docs.unrealengine.com/en-US/…ets/index.html

Quote me for reply, so i know when you write something :slight_smile:

Thank you so much for your help

I finally went back to the first option this option works much better for me than the second one.

I think I understood what you were asking me with the first option and I discovered that the bool does’nt change after the branch.
In the startcount it does change from false to true but not in the branch.

if it is the same variable it must change everywhere.

Try start a new blueprint.
here a quick timer using a widget,
as you will see you will be able to get the value of the timer from everywhere .