How come there is an error when I try to emit my own custom signal?

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

It says “Identifier isn’t declared in the current scope” but when I declare the signal inside the function it still gives another errorhere is the code

:bust_in_silhouette: Reply From: jgodfrey

Your emit code is wrong. That should be:

emit_signal("shoot")