I wager a guess:
each unit gets assigned a unit ID when it is created and the game probably goes through them in this order - oldest first...
I did not look through the code though, but that is what I would do if I were lazy coding something like this
each unit gets assigned a unit ID when it is created and the game probably goes through them in this order - oldest first...
I did not look through the code though, but that is what I would do if I were lazy coding something like this
