Does signal synchronous

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

I want to use a function from another script to do some stuff and I want it to do it before my other stuff but I don’t want to connect them because the tree structure that I used

For example, I have a car object and at a junction, I need to know what are the possible direction so that my car can choose randomly, the car will emit a signal to the road object so that the road will generate all the possible direction after that my car will choose randomly, what I’m unsure is that the car will always choose after road generates direction. Is it will always be the case with signal or not?

:bust_in_silhouette: Reply From: klaas

Hi,
the connected function will be called immediatley after the emit_signal call unless you connected the signal flaged as deferred wich would deferre the call to idle time.