Cool idea,
It happens a lot when you're on patrol and an enemy tank comes in, the LAW guy got killed and the rest of his group got wiped out in no time because noone is smart enough to take that LAW.
I haven't tried it yet, but does the script check there are any rounds left, just to avoid he's running for no reason.
Anyway, I gonna try it ASAP
*edit*
K, tested
Seems to work fine
But I haven't tested it in a real battle yet.
Two thing I've noticed :
When you run the script on more groups the Findunits function is "preprocesefile'd" again, I don't think that necessary.
What happens with the script when the player takes the weapon before the assigned soldier is in place?
Anyway, usefull script imo.