#Can you use function in parent and child nodes?

1 messages · Page 1 of 1 (latest)

tender granite
#

I have a class script called GenericBuilding with all the functions my buildings need like _on_body_entered(). my CraftingBuilding script extends GenericBuilding and has a _process function for thing I only need the crafting building to do. There is code in the GenericBuilding _process function that I want to run for all scripts that inherit it but it looks like only the code in the CraftingBuilding script's _process method is running. Is there a way to just add on to the parent's function instead of replacing it?

tepid hemlock
#

Use super().parent_function()