Remove script from a node?

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

Hi,

Is there a way to remove a script from a node in scripting?
You can SetScript and GetScript, but is there something like RemoveScript?

I tried to SetScript(null), but that made no changes.

:bust_in_silhouette: Reply From: Schweini

Click on the node, then click on the script with the red script (which is locatet next to the nodes search bar)

:bust_in_silhouette: Reply From: Magso

You can attach the script to an empty child node and use queue_free() to rid of that node thus stopping the script.