Skip to main content

Report this content

We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.

Note that misuse of the reporting tool will not be tolerated.

Item being reported:

A forum post by AndymationB

I would like to make a Hunter AI system that chooses the closest of five available targets.

So far, I've put a chip in each target with a laser scope and a transmitter that sends out the distance from the Hunter AI.

In the AI, I placed five receivers... and then wasn't sure where to go from there. I can use calculators to determine which value is lowest, but I don't know how to then refer back to whether that signal came from target 1, 2, 3, 4, or 5.

As I'm typing this, I'm realizing that maybe I could use "equals" calculators to compare the minimum value with each transmitter to get a unique signal for correct one. Hmm.. that sounds like it might be one of my usual overly complicated solutions, though.

Any chance anyone has a more elegant solution?

Any help is greatly appreciated. And I apologize if this has been talked about somewhere else. I promise I looked for a while and couldn't find anything.

Oh dear! Your browser is either unsupported, or there has been a problem loading the page.