Each graph in NC has its own local variables. Therefore data can be associated with a BT-state by creating and using local variables in that BT graph, and by optionally mapping those local variables from/to variables of the parent FSM graph to get/set those variables when the BT-state enters and exits. Here is the Docs section regarding variables mapping for your convenience.
Regarding your example in the last paragraph, I am not really sure what you mean :(. A BT added in an FSM, IS the actual state itself, so you don’t have to swap in and out BTs. You just have to create two BT states (eg Aggro and Passive) in your parent FSM, and of course make the transitions that you would like the FSM to have.
Let me know if that is what you meant. Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.