get function args/types?

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

is there a way to get function arguments and its types?

eg:

func asd(a:String, b:int):
  pass

output:

print(get_func_args(self, "asd"))

prints:
{
  a:String,
  b:int
}

in my case my game will generate lots of objects that will call funcrefs with arguments, probably i will need to change the functions argements some times, then i do not need to check all objects that are using them.

:bust_in_silhouette: Reply From: klaas

Hi,
GScript does not support “reflection”. You have to solve this another way.