x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

alt text

alt text

Product Version: Not Selected
Tags:
01.jpg (267.5 kB)
02.jpg (216.2 kB)
more ▼

asked Mar 20 '15 at 02:45 AM in Blueprint Scripting

avatar image

mxnko
224 16 29 36

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Your event binding needs to look more like this: alt text

  • 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.

capture.png (90.5 kB)
more ▼

answered Mar 20 '15 at 03:27 AM

avatar image

TommyBear
409 20 31 240

avatar image mxnko Mar 20 '15 at 05:20 AM

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

avatar image TommyBear Mar 20 '15 at 05:52 AM

I'll give it a go

avatar image mxnko Mar 20 '15 at 06:39 AM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question