#area_entered() signal not detecting Area3D when declared as a variable

8 messages · Page 1 of 1 (latest)

tacit wave
#

@onready var base: Area3D = $SubViewport/Main/Base func _on_area_3d_area_entered(area: Area3D) -> void: print(area) if area == base: print("it's working")

As you can tell from the video, when the player enters the area it prints out the correct node. However when I check if it is that specific node as declared in the script, nothing is printed.

pure imp
#

or area.is_in_group

#

i'm not 100% sure about area3d but

tacit wave
#

Yeah I ended up doing .is_in_group as a workaround but I'm still really confused why the original code didn't work 🤔

pure imp
#

idk comparisons are weird

#

groups would be better for like