Parent and Child blueprint

I have this actor class called “Area_Dialogue” that is for activating a dialogue when the player character overlaps. I made a child class of it “Area_Dialogue_Phone” that when the player character overlaps with it a phone pops up and the player needs to answer it and when they do the dialogue starts. Once the dialogue is finished it removes and resets the widget to its default and resets the tracker for what line of dialogue its on and removes the phone.
Well I have managed on my own with everything up until the removing of the phone because in the “Area_Dialogue” all the functionalities are on events that are not custom events well for the removal of the phone its an custom event so it doesn’t show inside the child.

This is in the parent class

And this is in the child class

And this is the code that I have a problem with

As you can see in the child class I have added the extra code that is specific for the child in the case of actor overlap

But the code that “I have problem with it” doesn’t show inside the child.
If the custom event would have showed inside the child I would have been able to just add the “Only in Child” part and it would work fine.

Is there a way I can make it show inside the child or do I just make a duplicate of the Parent class and just add the extra code.

Thank you in advance :slight_smile:

1 Like

You should be able to find the parent functions in the child

1 Like

I looked there before but for some reason I didn’t see it. Thank you

1 Like
  • an event in the Parent class:

  • a Child can:
    • override what the parent is doing
    • call it directly

  • or do both:


And, as mentioned in the previous post, the calls can be overridden here:

image

Which is the same thing as the red event node in the 2nd pic.


I looked there before but for some reason I didn’t see it. Thank you

In which case there’s something else going on here we don’t know about. Check the upper right corner of the BP:

image

Who is the parent of the child?

No no it was there I just didn’t see it I guess I was blind :laughing:. But thanks for the extra info

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.