How to bind to inherited event dispatcher?

What is a proper way of binding to a custom event dispatcher from a child class?

I am getting:

Error No delegate function name  Create Event 
Error Failed to create property K2Node_CreateDelegate_OutputDelegate from  Event  due to a bad or unknown type (Delegate)
Error Event signature error:  No function name.  Create Event 

I am also not sure why there is an object parameter on Create Event in child class.

Please see screenshots for details.

Your event binding needs to look more like this:

  • You’ll want a property that has a link to connection to the thing that will send you the message
  • The sender should obviously have an event dispatcher
  • Then bind to the event
  • Then drag of from the “Bind Event to…” node event pin onto the canvas
  • Select “Create Custom Event…”
  • This will create a handler that has the correct signature

Tommy.

Tommy can you get it to work in Construction Script when you inherit the event from a parent class?

I’ll give it a go

Hey, don’t waste too much time on it. I don’t think UE4 works with construction time events. I could be wrong.

Workaround of caching data in inherited variables or function overloads work around this problem.