Signal Error

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Jakub Luxa

Hi
I am making project with spawner, that spawn meteorits. When is meteorit hitted that he destroys.
But it makes an error :

E 0:00:14.613 _signal_callback: Resumed after yield, but class instance is gone.
<Chyba C++> Condition “instance_id && !ObjectDB::get_instance(instance_id)” is true. Returned: Variant()
<Zdroj C++> modules/visual_script/visual_script.cpp:2324 @ _signal_callback()

Sorry, for my english.
Thanks for help.

:bust_in_silhouette: Reply From: CharlesMerriam

Well, just reading the error message, did you write something where the ship yields to the asteroid exploder but the asteroid exploder removes the ship? At the end of yield statement, is the caller guaranteed to still be there?

Alternately, if you are yielding from one asteroid to another, make sure each has its own properties.

Oh, i see now. Ye, when the meteorit hit the ship. The ship explode and its removed.
But whst can I do with that. I have no clue.

Jakub Luxa | 2020-11-05 22:25