Progress Bar not updating.

Hi! So I’ve been getting a lot of help in these forums, and I’m almost done with this! Just a small problem.

So Right now a progress bar (Generator fuel bar) appears when I interact/Open a laptop, and disappear when I leave the cameras.

[My problem is that the Progress bar is not updating in the CCTV cameras, but if I put the same bar in the player view it works.]

Thank you for the help!

@BRGJuanCruzMK

Hello again @UkkosDuck !

First of all, you are still using the input IA_Interaction inside your generator and not in your character! That’s not good! I highly recomend you to watch this tutorial about how to create interactable objects before going any further!

Regarding your current issue, the problem is you are updating the worng widget! You are spawning a widget on the player’s viewport and updating that one with the following code:

Instead of updating the one you are turning on in your BP_ControlDesk.

I’d like to see where are you turning on and off your widget, because you need to reference in your generator exactly that already created widget instead of adding a new one to the viewport.

In addition, once you get the reference to the correct widget in your Generator, you can update the widget using its “Update Generator Timer” immediately after you “Set Current Time” in your Set Timer By Event.

You will need to remove the event tick in your Widget as well:

I’ll be waiting for your BP_ControlDesktop blueprint so I can give you a proper answer!