; Script name : parachute.sqs
_units = units group (_this select 0)
_helicopter = _this select 1
_i = 0
_Max = count _units
#Here
(_units select _i) action ["EJECT",_helicopter]
unassignvehicle (_units select _i)
_i=_i+1
~1
?_Max>_i:goto "Here"
exit
a script i picked up from the editors depot. execute it like this:
[groupleadername, choppername] exec "parachute.sqs"