- Edited
Heyo,
I have a bit of code below. I'm getting this error (E 0:00:08:0987 emit_signalp: Error calling from signal 'area_shape_entered' to callable: 'CharacterBody2D(Player.gd)::_on_player_face_collider_a_2d_area_shape_entered': Method expected 0 arguments, but called with 4.)
I don't understand why it's being called with 4.
Maybe I don't understand how the built-in signals work exactly in the first place.
All I know is that every answer sounds like "It's calling an argument because you have one", or "Just use a stand-in parameter like _DoesNothing", which does nothing.
Any help is of course appreciated.
func _on_player_face_collider_a_2d_area_shape_entered(area):
## SET FACE COLLIDER VARIABLES ##
FaceColliderOverlap = true
FaceColliderArea = area.get_groups()
## WHEN PLAYER THROWS SMALL OBJECT, THE INSTANCED NODE WILL USE THIS VARIABLE ##
MainGlobalScript.CurrectSmallObjectArray = area.get_groups()`
Thank you