queue_free()': Method not found.. How do i connect an autoload signal with a function from a nother script?

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

enter image description here

How do i connect an autoload signal with a function from a nother script?

i tried:

healthcontroller.connect("no_health", self, "_on_Player_respawn()")

func _on_Player_respawn():
	queue_free()

and i tired:

healthcontroller.connect("no_health", self, "queue_free()")

with both i get the error Method not found… but i don’t know why

:bust_in_silhouette: Reply From: Rabbitnap

I fixed it, just leave out the clamps for the function

healthcontroller.connect("no_health", self, "_on_Player_respawn")

func _on_Player_respawn():
    queue_free()

Rabbitnap | 2020-08-02 08:27