Reply To: [QUESTION] Reset Filter Node

NodeCanvas Forums Support [QUESTION] Reset Filter Node Reply To: [QUESTION] Reset Filter Node

#15315
Gavalakis
Keymaster

Hello again Johny 🙂

Do you actually disable the bot gameobject when it dies?
If you do disable the gameobject, then the graph would also stop (and re-start when the bot gameobject is re-enabled again) and will thus also make it so that the tree is not continuously running even though the bot is dead. Also, Stoping and re-starting the graph (which can be a result of disabling/enabling the gameobject) will also reset any node “flags”, like “executedCount” is automatically.

For example, you can add the action “GameObject/Set Active” on the action node on the right (the node that is called when isAlive == false).
Please let me know what you think and if that helps (or not 🙂 )

Thank you!

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