how do I check the id in the area

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By daniilpol

I have area3d. It’s constantly moving. There are many of these objects. I want to track a collision with a specific object, and do an action on that. But I don’t want to do multiple area , for tracking. How can I determine which object it collided with?

func Clash_with_a_player(body):
	print(body) # "Strange:[KinematicBody:1446]"
	if body == "Strange:[KinematicBody:1446]":
:bust_in_silhouette: Reply From: ramazan
if == "Enemy1":
    print("bla bla")

Enemy1 = “Strange:[KinematicBody:1446]” ==> KinematicBody name.