0
Done

Some questions and improvements about Gather Components by distance.

cloud cang 5 months ago in Game Creator updated by Marti (Lead Developer) 5 months ago 3

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.

Unity version:
2019.3.8
Game Creator version:
1.1.6

Answer

Answer
Done

I've added a new Action called "Gather Tags by Distance" that will put all objects found in a radius with a specified tag (which can come from a local/global/list variable) and will be available in the next update. I'm closing this issue. If after the update you have questions on this, feel free to reopen it.

I have completed the modification and the modified script works fine.

Planned

It's another option. Might be useful, so we'll add this for the next version

Answer
Done

I've added a new Action called "Gather Tags by Distance" that will put all objects found in a radius with a specified tag (which can come from a local/global/list variable) and will be available in the next update. I'm closing this issue. If after the update you have questions on this, feel free to reopen it.