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"

can't call overridden function

Hi

ue 4.6.1

I have a function "Execute" in a parent blueprint and multiple children

the function has a return value

the function is overridden in 3 of the (many) child blueprints

when i try to call the overridden execute using an instance of one of the children , i can only call the original (empty) function of the parent alt text alt text alt text alt text alt text

Product Version: Not Selected
Tags:
screenshot_1.png (157.4 kB)
screenshot_3.png (70.6 kB)
screenshot_2.png (152.9 kB)
screenshot_4.png (353.2 kB)
screenshot_5.png (268.8 kB)
more ▼

asked Apr 14 '15 at 12:49 PM in Bug Reports

avatar image

Mohammad Al-Hajj
6 1 2 3

avatar image TJ V ♦♦ STAFF Apr 14 '15 at 07:36 PM

Hi Mohammad,

I attempted to reproduce this but so far I haven't gotten your results. Could you recreate this error in a small test project and upload it here?

avatar image Mohammad Al-Hajj Apr 16 '15 at 04:35 PM

I am sorry for the late reply

i can't recreate the project for technical reasons (ue4 crashed and i am facing bigger more immediate problems now)

i did however manage to recreate the problem on my own

it is simple: ue4.6.1

  • create 1 parent blueprint

  • create 3 children of that parent

  • create a function "execute" in the parent that returns a "false" boolean

  • rightclick "execute" in 2 of the 3 children and press implement

  • create a new blueprint

  • add an event that takes in a "parent" as input

  • cast the input to one of the children

  • as the output of the cast, try to call execute

this will give you the desired experience as seen in the above pictures

avatar image Mohammad Al-Hajj Apr 16 '15 at 05:03 PM
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Here is the way to get the cast working properly. The Execute function node still shows the parent bp (which I'm investigating and will likey bug) but it is correctly casting to the child's version of Execute. I have the parent's function set to False and the child's set to True.

Let me know if this works for you.

alt text

casttochild01.jpg (277.9 kB)
more ▼

answered Apr 17 '15 at 03:10 PM

avatar image

TJ V ♦♦ STAFF
41.1k 1009 183 493

avatar image TJ V ♦♦ STAFF Apr 17 '15 at 03:46 PM

I created JIRA UE-13976 for the issue where the function node reads the parent and not the child. Our developers will be investigating the issue and we will post back here with updates as we have them.

Cheers,

TJ

avatar image Mohammad Al-Hajj Apr 24 '15 at 04:49 PM

thank you very much

(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