Changing/updating one function in the script from an inherited scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By samjmiller

I have an instance of a static NPC that I’m inheriting from, to make multiple static NPCs. I would like to have each one have its own func talk(answer = “”): so that each static NPC can say something different - is there a way to call that specific function again and update it in the child scene? Thanks!

UGH, sorry - I figured it out! Apologies.

samjmiller | 2021-03-09 23:42

What was the answer - just curious!

exuin | 2021-03-10 06:02

I just called the func talk(answer = “”): function again in the child script, with updated text, and it overrode the parent func talk(answer = “”):!!

samjmiller | 2021-03-10 16:55