I was able to find a solution.
if GlobalInfo.onstump == true and Input.is_action_just_pressed("Swing"):
if GlobalInfo.lookat.get_parent() == self:
var log_placement = self.get_parent()
var storage = self.get_parent().get_parent().get_parent().get_child(3)
print(str(storage))
GlobalInfo.lookat.get_parent().queue_free()
print("chop")
GlobalInfo.onstump = false
var half1 = loghalf1.instantiate()
storage.add_child(half1)
half1.global_position = log_placement.global_position
it wasn’t able to get the %Logs%
node outright so i had it go through the different nodes using the .get_parent()
and .get_child()
functions
if anyone is having a similar problem I’d recommend this, if there isn’t a way easier way.