NodePath seems to be incorrectly resolved

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

Hi all

I have the following RedBomb scene:

RedBomb
|
— Tickable

This RedBomb scene is used in another World scene. The RedBomb node has a script on it which exports a NodePath:
export(NodePath) var trigger_on_interact = null

When I set this NodePath to Tickable via Editor Inspector, it is set to “Tickable” in the RedBomb.tscn.

When I run the game and print trigger_on_interact , I get ../Scenario/RedBomb/Tickable, which is wrong, and a get_node(trigger_on_interact) returns null.

The World scene looks as follows:

World
|
— Scenario
|
— SpecificScenario
|
— RedBomb

I don’t understand where ../Scenario/RedBomb/Tickable is coming from. Can anybody help?

:bust_in_silhouette: Reply From: hanke

Answering my own question:
Removing RedBomb from SpecificScenario and re-adding it fixed the NodePath (note that resetting the NodePath in the SpecificScenario scene did not help).