I'm working on a top-down tank game. I have a basic behavior tree (screenshot attached) working on the root enemy tank gameobject which searches for the player and when it can see it, rotates the entire gameobject and shoots (via Invoke Method). What I would like is for the chassis to steer the tank around while the turret looks around and if it sees the player can direct the chassis to steer and also rotate itself towards the player and shoot.
Are there any examples of this kind behavior? I've thought about a few ways to go about it:
I appreciate any help!
Are there any examples of this kind behavior? I've thought about a few ways to go about it:
- Two behavior trees that can communicate with each other (mainly the turret being able to set a destination)
- One behavior tree that uses Invoke Method to move the turret
- Custom task(s)
I appreciate any help!
Attachments
Last edited: