While messing around setting up the HUD for the game I’m building I came across Event Dispatchers, which seem like a really useful way of communicating between objects in-game. So I’ve got a couple of questions…
My first question relates to the implementation in the Blueprint_HUD map in the content samples from Epic. What I’ve gathered from the documentation is that you need to have an instance of the object that dispatches the event in the ‘listener’ Blueprint so you can bind to your own custom functionality… but the level script seems to break this rule and I’m having trouble tracking down the link between the call to the event and the listener.
So the item you can pick up in the example has the following event (I added the TestEvent to try and replicate the functionality):
And then in the same Blueprint a call to the event dispatcher is made:
But in the Level Blueprint seems to be able to access this event without needing to bind to an existing instance of the pickup Blueprint:
My ‘TestEvent’ dispatcher doesn’t appear in any of the available nodes so there must be some kind of binding that I’m missing - but I can’t seem to track it down.
The second question I have is how did this level script get that *BP_Pickup_Child_Health *Actor instance?
Thanks in advance!