![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
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?