Signal doesn't connect right away

I have global script which is, like, signal manager.
When player area enters object area, it player calls send function, while at the same moment object calls get_signal ( to move itself ), but signal won’t connect right away, it connects when player re-enters object area ?

signal poslati(value)
func send(value):
poslati.emit(value)

func get_signal(function_name):
poslati.connect(function_name)

You’re connecting the signal in response to some other signal.

You want to run that .connect either in the object’s _ready() or right after instancing it from a, like, manager script.

1 Like

Thank you, it works now.

1 Like