#How do I send a signal to only a specific node instead of all the connected ones?

1 messages · Page 1 of 1 (latest)

junior plaza
#

I would like to send a "startTurn" signal to the first child of my "turnManager" node I only know I can do startTurn.emit() but that does not really accomplish what I need as I only want to send the signal to the first child of my turn manager node

vagrant locust
#

that's not how signals work. they always call every connected function when they emit. if you want to have a signal call only 1 function, connect that signal to only that 1 function. or you could emit a receiver code that the connectionis use to tell if the signal was for them

hushed oriole
#

Or get a reference to the node with the function and call it directly, without signals

junior plaza
hushed oriole