I am using the behavior tree as a companion AI, which is not bad and smooth. AI distinguishes enemies from companions using Gather Components by distance. I think Gather Components by distance is not easy to use. I need to add an empty enemy script to each enemy. , Through Gather Components by distance to find the enemy script component on each object gameobject to achieve, why not to find the tag of gameobject to achieve it? I think it is better to find the tag of gameobject to distinguish the enemy from the companion. I need to know Gather Components by In the directory where the distance script is located, I will modify it to find the tag. Just change the enemy tag to the enemy tag, and the companion AI to the companion tag. Because GC does not have this, someone needs to do it.
Customer support service by UserEcho