I have created an item the player can pick up and i am receiving this error upon starting the game
E 0:00:01:0275 emit_signalp: Error calling from signal 'body_entered' to callable: 'Node3D(biofluid.gd)::_on_area_3d_body_entered': Cannot convert argument 1 from Object to Object. <C++ Source> core/object/object.cpp:1200 @ emit_signalp()
I do not get an error upon picking up the item, and the code does work as expected.
#Area3D error
4 messages · Page 1 of 1 (latest)
the problem is that the body entering isn't guaranteed to be a CharacterBody. it could also be a static body, rigid body or even a TileMap(Layer). that's why the type of the body argument in body_entered() is just Node.
if you're using static typing it has to always match, either being the same class or a "parent"-class.
Ahh so just leave it as node