Hi, quick question, is this not the right way to get the path to a sibling node in a node tree structure? I am trying to make an enemy jump to the player's position. The player is located on /root/LevelElements/, so I figured the path to the player node was exactly that. However, when the jump function is triggered, I get an error.
"Invalid get index 'position' (on base: 'null instance')."
Which means the engine can't find the player node, and as such, it can't find the position of something that doesn't seem to exist.
I attached a screenshot of the code, with the Level node tree structure visible. I wonder if the error might be caused because the enemy is within a deeper "folder" compared to the player, being located on /root/LevelElements/FOE/ ?
Thank you very much!