Make an event disptacher in GameMode which activates on Confirm_Button from Widget

R_smos
Thu, 07 Mar 2024 09:57:29 +0000
Programming & Scripting

Good day, friends!

I want to create an event dispatcher or somehow to communicate to GameMode that Confirm_Button in my widget was clicked and to spawn the actors with the variables introduced in widget.

These are the nodes from GameMode

These are the nodes from Confirm_Button widget

Until now, the Main_Menu widget (with the Confirm_Button) was placed in a diferent starting level and OnConfirm would start the Level with it’s logic.

Now I want to leave only one level and for the Widget to be fixed all the time on Viewport (I’ll figure this out).

Only now I can’t make it work as I don’t know how to tell the GameMode to wait until Confirm_Button is clicked and only after then start working.

Maybe my logic is flawed and I can implement this differently but I would need your help in deciding on that.

Thank you in advance for your help!

5 posts - 3 participants