make a waypint of the heli far away from where it is unlading all ypour squad/s and on the Waypoint's condition filed add the name of a variable.. like Goout, and when all the cargo is out of the chopper activate it.. and the helo will take off.. i think :p
Asuming the heli is not in the same group of the squad