So I have an Area3D node attached to an enemy sprite. The goal is to "wake up" the enemy once the player gets close enough. But it's just not detecting the player at all.
This is all I have for code
func _on_chase_player_body_entered(body):
if body.is_in_group("player"):
print("entered")
Both the enemy and player a CharacterBody3d nodes, all the collision layers and masks are set to default, everything is as it should be. I just can't figure out why it's not working. I recreated the same setup in a separate project, and it worked just fine. but it wont in the actual project I'm working on.
#Area3D not detecting body entered
8 messages · Page 1 of 1 (latest)
A few things:
- enable Visual Collision Shapes in the Debug menu to make sure all the shapes are where they're supposed to be while playing
- check if there's a green arrow left of your function declaration in the editor to make sure its connected properly
- print above the
ifcondition to make sure it is the signal that's failing and not the group check
Collision Shapes are all good, green arrow is present.
Printing above the if statement did nothing
The only thing I can think of then are the collision masks, but as you said they are all default thus should work
And obviously you didn't turn off the Monitoring property of the area
No, monitoring is turned on like it should be.