Hello,
I am trying to setup a system where a different external tree is run on a BehaviorTreeReference node, dependant on some variables set on the GameObject containing the tree.
Essentially I have a character who needs to perform their "job task" at the same point in the tree, but these tasks can be different (e.g transport goods, chop down tree), and I need to set the shared variables for this external tree before it runs, however I'm not quite sure how I should set this up. How am I able to change the referenced behavior at runtime? And how do I change the variables for them.
I have it set up currently just always running the same external tree, but I can't set the variables for it. How is this done?
Thanks,
Elliott
I am trying to setup a system where a different external tree is run on a BehaviorTreeReference node, dependant on some variables set on the GameObject containing the tree.
Essentially I have a character who needs to perform their "job task" at the same point in the tree, but these tasks can be different (e.g transport goods, chop down tree), and I need to set the shared variables for this external tree before it runs, however I'm not quite sure how I should set this up. How am I able to change the referenced behavior at runtime? And how do I change the variables for them.
I have it set up currently just always running the same external tree, but I can't set the variables for it. How is this done?
Thanks,
Elliott