I've got the information on the point A location:
player_pos = $"/root/Global".player.get_position()
I've tried to put the angle needed for object B to rotate to point at A in a variable:
var angle_toplayer = get_angle_to(player_pos)
But it comes up with this error message:
Invalid type in function 'getangleto' in base 'KinematicBody2D (Sword.gd)'. Cannot convert argument 1 from Nil to Vector2