Score counter with widgets. Help Please.

My problem is that I have an actor that overlaps a trigger box and triggers an event. Then that event increases a variable (integer). I cant seem to figure out how to get that Variable within the Actor Blueprint into a Widget Blueprint that I have created. I watched this video UE4 soccer ( football ) Game Using Blueprints - YouTube and at the very end he shows the red team score count with a ballgoal static mesh or something. I cant figure out how to recreate the last part where he links the ballgoal and what it could be. If anyone can help that’d be awesome!

You need a “path” from your widget to your variable. There is many possibilities but it depends on where is your integer … In an actor, in the level blueprint ?

For example :
If it’s an actor, and the pawn passing through the triggerbox is controlled by a player controller :

The trigger get the pawn (with overlapping event), the pawn get the player controller (get owning player) and the player controller get the widget (through a variable set when the widget spawn)
All of this off course in your overlap event only.

(Trigger → Pawn → Player Controller → Widget)

But you really need a way to find one of them from the other (there is a “find all actor of class” node, but it’s an heavy task, use with caution)

I hope it can help you …

Thank you for helping. I was able to find a couple easy to follow videos on Event Dispatching. For anyone who finds there way to this thread with the same problem, follow these 2 videos ( UNREAL ENGINE 4 BLUEPRINTS | Event Dispatchers - YouTube and - YouTube) and I also posted what my BP’s look like.

Follow Link to see video of what I was trying to accomplish.