#custom signal connection

7 messages · Page 1 of 1 (latest)

thick dock
#

here is the logs (the item script)

#

and here is what i tryed in my inventory system

#

and here is the error message that i get

E 0:00:01:0759 inventory.gd:116 @ _ready(): In Object of type 'PackedScene': Attempt to connect nonexistent signal 'askInventaire' to callable 'PackedScene::_on_collision_box_area_entered'.
<C++ Error> Condition "!signal_is_valid" is true. Returning: ERR_INVALID_PARAMETER
<C++ Source> core/object/object.cpp:1256 @ connect()
<Stack Trace> inventory.gd:116 @ _ready()

thick dock
#

I want to get the value of the Signal to use it in my inventory script but for that I need to connect an item who is not created yet in my main scene to my inventory script when an item is created

haughty wadi
#

The error message says the signal doesn’t exist. Can you show the code of the preloaded scene?