I'm using function connect() to connect a bullet area signal area_entered to the bullet node, once it reaches a certain distance. After that the bullet goes back to the player, enters his area and frees the bullet.
Problem: The bullet instance connects to the player once it reaches certain distance, so it connects a lot of times and I'm getting an error that looks like this:
The function 'connect()' returns a value, but this value is never used.
My connect looks like this:
$"Bullet_Area".connect("area_entered", self, "_on_Bullet_Area_entered")
Why does function connect() return a value "Error"(which is apparently an enum), shouldn't it just return void?
What are you supposed to do with this value, or should I ignore it?