I am building a procedurally generated world that uses spawn points to spawn enemies and track their existence in the game world through a bool (hasSpawn = true). These spawn points use child scenes as the enemies and I want to pass information from the child to the parent in order to 'clear' the parent so that it is free to spawn another enemy in the future after the player kills it's child. Since I have multiple instances of the spawn point generated procedurally, I need to find the specific path to the instance that holds the child that the player kills in order to clear that instance.
TLDR: I need to dynamically find the path from child to parent in order to change a variable.
I have tried this in multiple ways. But, this is as close as I've gotten so far:
var thisParent = self.get_parent();
var parentPath = self.get_path_to(thisParent); #probably incorrect usage
var s = str(thisParent);
var v = str(parentPath);