Enemies either roam or move to stimuli location but not both

I’m having some problems getting the AI to work. When all nodes in behavior tree are connected, the AI will roam to random location, but will not move towards the rock sound. If I disconnect the roam logic, the enemy will move to the rock sound, but it will not do both.

I rewatched the whole video and was sure I connected up the behaviour tree correctly, but I must have done something wrong.

After some messing it seems to work, but the AI is quite buggy.

I believe for the patrol and wait tasks, you could use a sequence with the decorator “SoundLoc is not set”.

Privacy & Terms