Node with more than one script

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By trafel
:warning: Old Version Published before Godot 3 was released.

Is is possible to attach multiple scripts to a node ? I want to make a script for common functions and variables for a type of object and have a script attached to each object for their unique properties.

:bust_in_silhouette: Reply From: Gokudomatic2

No, you can’t assign more than one script to a node. But you can extend a script from another one.

:bust_in_silhouette: Reply From: Akien

You can’t add several script to a node, but you can add child nodes with their own scripts to extend the characteristics of the parent node.

See e.g. how it’s done for the various tower nodes in Project Kumquat.