I got hold of a surrenderscript from OFPEC a few months before it crashed, and now i can't find it anywhere. Don't remember the author but it had many useful functions included in it.
Roughly it was written in the following way:
*exec when a squad had suffered x% casualties(then entire remaining squad surrenders) according to what you specified in initfield ["x,x" exec script.sqs], and this was checked whenever they received a casualty (ie. start checking after 40%(0.4) casualties, and given an 40%(0.4) chance of surrender every time someone dies after 40% first occured).
So a poor mob could easily surrender at a chance of 100% if they take a single casualty if you wanted it to. ^^
*once the unit surrendered they drops all their weapons,magazines,equipment (and ofcourse become captives).
*next they could be assigned to the player by moving close to them and choose, addaction "capture" or follow.
(a single unit is created in a mission, named but is removed also in its initfield, but was the leader of the captured unit, meaning the player(you) could capture up to 11 captives and have them following you at the same time that you are part of another group.
*a captured unit could be ordered to follow or stop follow the player, via the action command meny.
*alternatively it was easily specified that any captured unit where to walk toward a designation specified by you in the script, be it an object, unit or fixed terrain(say your base or alike).
Do you recognize this script, have it or know how to get it, please let me know.