Reply To: [Bug] SetObjectActive & Sequencer

NodeCanvas Forums Support [Bug] SetObjectActive & Sequencer Reply To: [Bug] SetObjectActive & Sequencer

#13797
Gavalakis
Keymaster

Hello,

It’s not exactly a bug, but it could be perceived as such I guess 🙂
Because deactivating the owner upon which the graph is running is a special case, please use “Control Graph Owner” action to Stop the Behaviour before deactivating the gameobject. For your information, the problem here lies in the fact that the sequencer is still within a for loop when the deactivate action is being run. I could change the code to break out of the loop of course by checking if the owner is still active or not, but this is why I qualified this as a special case.

Let me know if that works for you.
Thanks.

Join us on Discord: https://discord.gg/97q2Rjh