AI Behavior Tree

GlasyaLabolasHun
Sun, 01 Oct 2023 10:48:11 +0000
Blueprint

I have created an enemy Ai controlled by a behavior tree.

Basically it patrol randomly but when it see the player run towards and attack it, it works fine when I have one enemy on the level and sometimes with multiple enemies, but most of the time I got an error message with multiple enemies.

The enemy has a sphere collision which if the player walks in it can see the player.

I think the problem is with the SeePlayer boolean because it tries to set it multiple times but I can’t fix it.
I tried to add a Branch / Is Valid nodes to first check if the SeePlayer already set or not before it set it, but still got the message.

4 posts - 3 participants