Multiple behavior trees

p0rkskratchin

New member
Hi,
Is there a 'best' approach for having multiple behavior trees? I.E I would like an agent to use one behavior tree until some event occurs and then switch to using a different tree.
Is this a valid pattern?

Thanks
M
 
It is - in the CTF sample project I actually do something similar :)
Thanks Justin. I ended up using one tree with a CompareSharedBool to flip between two behaviours beneath a selector. Having only been using BD for one day, I've managed to create an AI that can either be a 'chaser' or a 'runner'. The runners will try to evade the chasers, but if caught will become chasers themselves and seek out the nearest visible runner. BD is a very impressive tool.
 
Top