Hey,
I have a script that emits a signal "DialogueFinished". I'm trying to connect to that signal in a different script like this:
dialogueScriptReference = get_node("../Player/Dialogue")
if(dialogueScriptReference):
dialogueScriptReference.connect("DialogueFinished",self,"DialogueDone")
else:
print("dialogue is null")
from my understanding this should connect to the signal DialogueFinished and run the DialogueDone() function but im receiving this error instead:
Invalid type in function 'connect' in base 'Control (Dialogue.gd)'. Cannot convert argument 2 from Object to Callable.