Reply To: BT and sub FSMs question

NodeCanvas Forums General Discussion BT and sub FSMs question Reply To: BT and sub FSMs question

#11374
Gavalakis
Keymaster

Hey,

There are certainly many ways to approach this and no solution is definite of course 🙂

Another approach that you might want to consider (based on your last post), is to Bind certain blackboard variables to properties on some custom script attached on the gameobject and have those properties do the checks your require. This way, you are able to use these property bound variables (and thus checks) from wherever in your graph hierarchy and they will always evaluate only when you “get” them.

So, for example you could have a bool variable “isEngaged” bound to a bool property of one of your custom scripts and in return that property will perform the check and return true/false accordingly when requested.

🙂

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