Event dispatcher not receiving messages

“I just simply create a variable and set the variable type to barracks_bp”
you need to set this variable to a valid reference of the object afterwards! maybe

  • when creating the ui expose this variable and set it from the baracks bp
  • on begin play or construct of the ui do a get all actors of class
  • or… we need a bit mor information how you’ve setup :slight_smile:

You are doing things the wrong direction. never ever posible to do a BIND EVENT on SELF! (tecnically possible but not useful in your case).

Normaly it’s easy peasy like:

  • barracks ui has a eventdispatcher name it onClickSomething,
  • in your button (inside barracks ui) onPress event CALL this event dispatcher,
  • in your barracksBP maybe on begin play, get your ui (maybe getHud with a reference to the relevant UMG) and BIND to this event

done.
I think it is also possible to bind to the button Event directly from the barracksBP - but, get the easy way first.