Copying a node including connection/signal

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By simplex3
:warning: Old Version Published before Godot 3 was released.

When copying a node in the node tree (CTRL+D) the signal of my node’s tween is not beeing copied. Is there a way to do this (in a script?).


:bust_in_silhouette: Reply From: stubbsy345

What is it you’re trying to do? Is the node being copied while you are editing the game? Or while the game is running? If you want the nodes to be copied at startup you could just connect there signals in the ready function as such:

var nodes = get_node("pathtoparent").connect("pressed", self, "your_function")

If you let me know exactly what you need to do I can help you better?

thank you very much for the reply.
That’s exactly what i did, finally.

simplex3 | 2017-09-17 15:52