I'm trying to write a simple behavior tree for wandering animals - chickens and pigs on a farm, deer in forest, etc.
I want to use the "wander" task from the movement pack, but it never returns.
I'd like my animals to wander around a bit, then eat whatever is there (just play an eat animation, it's background, not simulation) or just wait there, or sit or lie down for a bit, etc. All those other things work, just wander - never returns.
How do I update my tree so that wander terminates when it reaches its destination? Or is interrupted after a random time?
I want to use the "wander" task from the movement pack, but it never returns.
I'd like my animals to wander around a bit, then eat whatever is there (just play an eat animation, it's background, not simulation) or just wait there, or sit or lie down for a bit, etc. All those other things work, just wander - never returns.
How do I update my tree so that wander terminates when it reaches its destination? Or is interrupted after a random time?