posted 10-26-15 08:40 AM EDT (US)   
Hey Guys,

I am new to the forum. I have been scripting and working with map.ini for a few years.
I have been trying to make a reliable check which player or even unit holds the ring (attached to it's geometry).

So far without luck! Every attempt was somewhat unreliable.
The plan is to change allegiance of the ring to the player who holds it, so that modifiers will work on that player and allies only. Also this way I can script which team has captured the ring like in the game Lord of the rings Conquest. Players can carry the ring into an area which will score a point and delete the ring.
The last part all works.

But the scrips struggle to find the player closest to the named ring object.

Does anybody have suggestions on how to do this with the use of scripts and/or map.ini? This is not for modding, just a custom map.

Feel free to ask for specifics if it helps narrow it down.

Thanks in advance
Healthy Sociopath