How do you make a variable of an object / node in Godot's Visual Scripting Language?

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

Say I want Object A to do something to Object B.

But I also want Object A to do the same thing to Object C.

In my mind, I’m thinking I should just create an object variable that could hold either Object B or C.

But Godot’s visual scripting language doesn’t seem to want me to do that - it is very specific about the objects it wants me to reference, encouraging me to drag specific objects into its visual scripting window for me to impact.

What’s the right approach here? Is there something I’m missing in the way the visual scripting and node system operates?