Topic was automatically imported from the old Question2Answer platform.
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()
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.