Tree Layout

Hey All,

Currently I have 3 nodes in my attacking tree called "update attack type", "melee attack" and "range attack" which constantly run in parallel. The update attack type decides whether to melee or range attack and the other 2 nodes call external monobehaviours to do the actual attacks (external behaviours choose from a random list of attacks (i.e. punch, kick, shield bash) and communicate with the animator). This approach works fine for now but I am wondering if there will be any issues down the road? Would it make more sense to turn the external behaviours into nodes in the BT (i.e. punch, kick nodes with a random selector)?

Thanks!
Colton
 

Justin

Administrator
Staff member
That approach should work fine. External behaviors in this case would only be used if you wanted to reuse the behavior tree branch in multiple locations/trees.
 
Top