Event Dispatches Do Not Work In Widget BP

What’s the value of your two variables CURRENT and MAX?

The UMG ProgressBar is empty at 0.0 and considered full (at “100%”) when it’s value is 1.0.

Therefore make sure your progress bar value range is from 0.0 - 1.0 and not 0.0 - 100.0.

Instead of doing CURRENT - 10.0 you should be doing CURRENT - 0.1 and make sure the CURRENT variable has a default value of 1.0 and not 100.0 if you want the progress bar to start in the “Full” position.

EDIT to my above answer.

I re-read your post and you clearly stated you want the progress bar to increase and not decrease.

Set your CURRENT variable default value to 0.0.

Update your SCOREUPDATE_Event so it adds instead of subtracts. You should be adding CURRENT + 0.1 (1/10th of the progress bar’s “full” state).

I have spent more than 4 hours and no exaggeration here trying to make this simple code work.

All I want to do is when player collides with object progressbar increases, but it seems like dispatchers does not work.

Widget BP - When I collide with object this event should be played. It should remove 10 from current score, but this event never get fired for some reason

Object BP - When collided It supposed to fire event in a widget bp, but it does not.

Level BP

Sorry this was my mistake. I do want it to increase, but the tutorial I used was for decreasing health, If I could get that working I could change it so it increases. The values are 100 for both and I used print string to find problem and the event in Widget never fires.

I also used to get “accessed none trying to read property” error but I fixed it by deleting everything and start over, so don’t know where the problem was.

Here’s some screenshots that show my working example based off the ThirdPerson starter project.

This is my level blueprint, it’s slightly different than yours. On actor overlap I call an event that is set to reliable Replicate to Owning Client.

I also put in checks so we only create the progress bar UMG widget and dispatch it’s SCOREUPDATE event IF there’s a local player controller. When running in dedicated server mode there’s not a local player controller (hence there’s no “UI” or “HUD” available). So we don’t want to create the UMG widget if there’s no local player controller (and we definitely don’t want to try and access the UMG widget instance).

In the UMG progress bar widget i’m adding 0.1 to the CURRENT float variable that is bound to the progress bar.

Read my additional comment from 3 minutes ago. Don’t try to create the UMG widget on the “server” unless there is a local player controller. In dedicated server mode the dedicated server can’t have any HUD components.

Are you testing this with multiple players? Are you using a dedicated server?

I can see from your second screenshot that your SendScoreUpdateToClient is not set to replicate to owning clients.

Thank you so much for such detailed explanation. Anyways it started to show some signs of live, but it still not quite there. For some reason it ignores the first collision then reacts to second one and then ignores the rest collisions.

Ok nevermind, It only react to the one I select when adding OnActorBeginOverlap.

I tried doing this, but it still only works the one I select

Widget BP

Level BP In brackets it shows which one I have selected and it will be the only one working.

It’s FirstPersonExample running on my pc for college project, so I don’t think it’s either of them. It seems that making SCOREUPDATE event fire from level bp fixed the issue rather than checking if there is local player. But I still need help as It only react to the one I select when adding OnActorBeginOverlap.

It’s a sphere surounded by box collision.

Also Full Object BP incase you need it

Can you post screenshots of how the Box component is setup? Is it a Box collision component or a static mesh?

What happens if you stop the execution right before you call Spawn Emitter At Location so the actor and components don’t get destroyed?

I.e. does everything work if you only execute the code that moves the progress bar forward?

Nope, still only the one that I select.

It’s 3am and I have to wake up at 8 so I’m going to sleep, hopefully you will continue helping me, because I don’t think that there will be another person who will read all this to continue help me.

Thanks anyways