
func process(delta):
if reach.iscolliding():
if reach.getcollider().getname() == "Gun A":
weapontospawn = gunahr.Instance()
elif reach.getcollider().getname() == "Gun B":
weapontospawn = gunbhr.Instance()
else:
weapontospawn = null
else: ( HERE IS ERROR)
weapontospawn = null
if hand.get_child(0) != null:
if hand.get_child(0).get_name() = "Gun A HR":
weapon_to_drop = gun_a.instance()
elif hand.get_child(0).get_name() == "Gun B HR":
weapon_to_drop = gun_b.instance()
else:
weapon_to_drop = null