UMG and blueprint communication?


How do I run a blueprint script using UMG?

I got a Capture the flag game mode and want to make a team selection screen when joining the server.

Now I’m using trigger boxes to join the teams. So when they join/host a game it opens a new map with triggerboxes that set the team and colors when overlapping it respawns the player on to the actual map.

Screenshot of the triggerbox blueprint:


But I’m unsure how I communicate with the blueprint so I can get to work without tiggerboxes and use a UMG button.

I’ve been reading about Event dispatchers, but my attempts to do this have failed:


I’m really confused about how to do this…