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 Mm QA Team

If you simply want to know which is the closest enemy to the player (or something else) you can do this.
You need a trigger zone set to detect Tag’s called distance which has zone size 0 and falloff size big enough to encompass your enemies to check the distance. The closest Tag called distance within the falloff will have the highest value.
On the enemies you have a Tag called Distance wired to a Gate gadget set to interrupt. Only one Gate gadget of the same name can be active at a time. As the tags move closer to the centre of the zone their value increases. The closest tag will have the highest value and its gate will become the active Gate
You can then have a microchip activated by the Gate with A Tag saying closest target or whatever logic you want the closest target to have.
Hope that helps get you started.
K

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