var x = $InteractionRayEnabled.get_collider()
the above code is great for Raycast! The below code should be sth. like this, but doesn't work
var xy = $Area.connect("body_entered", emit_signal("body_entered"), "body_name")
Of course I can get the body name in a function :
func onAreabodyentered(body):
if not taken and body is RigidBody and body.get_name() == "Player":
Global_batch.P1points += 100
but I want it in a line please