Do you mean function overloading where the script calls the function based on arguments? From what Im reading sounds like you want something like polymorphism.
As the documentation says, you can defined a function in a struct like but is it possible, to overload this function later? So that you tell the function to do different things later in the code? This means, the script could always execute the same function, but the result would be different depending on the code content.…