AI targeting system

So I have been wondering this… I don’t know if anyone has figure it out or actually knows how it works.
Does the AI on firefight has like a threat system or how do they decide who to attack, maybe a random thing or maybe choose the nearest enemy/spartan. Why I wonder this?.. Because I have notice that sometimes if someone is attacking an AI with a ghost doing a decent amount of dmg and I sneak from behind or from a side the AI turns and start shooting at me, other times I have been shot from across the map. So I got really confuse, I feel that understanding this could give someone an edge in this kinda games modes.

I would assume who ever is doing the most damage to an enemy, the enemy would try to eliminate that spartan first.

> 2533274972430429;2:
> I would assume who ever is doing the most damage to an enemy, the enemy would try to eliminate that spartan first.

I would assume that too, then randomness happens for example you can be targeted even if you are not firing at all, so I would say it has more variables than just dmg idk.

> 2533274825069675;3:
> > 2533274972430429;2:
> > I would assume who ever is doing the most damage to an enemy, the enemy would try to eliminate that spartan first.
>
> I would assume that too, then randomness happens for example you can be targeted even if you are not firing at all, so I would say it has more variables than just dmg idk.

Maybe proximity?