Why can't I use this variable from my child node?

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

I have a variable in “BulletChild” called “explosionSound” and I want to use it in “BulletParent”. I define a variable in parent that says, "onready var Sound = get_node(“BulletChild”) And later I say, “if (Sound.explosionSound == 1):” But it doesn’t work. How do I use a variable from my child node?

Your question in unanswerable. Please specify the error given, show us some code of the Sound, BulletParent and BulletChild. There should be no problem with the way your are going, I presume some base mistake in your code structure.

Reloecc | 2020-09-14 17:41