Connect change in Godot 4

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

So apparently connecting signals changed in godot 4 and I need help. I think I understand how to connect a child’s signal to it’s parent(What they do in official documentation) but I can’t understand how to connect different nodes’ signals. This is my code:

func interact(body):
connect(“conversation_start”, body, “conversation_start”)
emit_signal(“conversation_start”, conversation)

The connect part is old version and doesn’t work anymore. This is a function for a npc that triggers when player gets near and interacts with it(I call the function from player code and pass players self as ‘body’ for npc’ code). How can I connect ‘conversation_start’ signal of npc node with ‘conversation_start’ function in player?