I'm writing a game where I have a gun object that needs to spawn a bullet. The bullet should be in the 'world'; ie, on the same level as all the other objects in my scene. The bullet is being created in the gun scene, which itself is a scene that is instanced in my ship scene, which itself is being instanced in the world. My gun needs to find its way back to the world scene to be able to add the bullet into the correct layer.
How does my gun find this world layer? If I just keep following get_parent(), that will take me all the way down the the root of the game, which is too far. How can I make sure I stop at the scene where all my world objects are?