It would be better to check the body by name or type, not by node reference
if body.name == "Player":
print("hit player by name")
# if you set a class_name Player
if body is Player:
print("hit player by type")
Make sure to paste code instead of screen shots
2 Likes