@Zenzor said:
In some function
emit_signal("variablechanged", name)
while yield(self, "variablechanged") != "my_variable":
pass
So, if there is no argument variables, GDcriptFunctionState is returned, otherwise, variable is returned ? I was sure I'm going to get GDScriptFunctionState instanse. So confusing, mainly because there is nothing in docs about it. Docs says that I get GDcriptFunctionState because it is return type of yield. Thanks for help