it did not return the units in cargo
That's strange because when I tested this just before I made my post the hint output was mile long.
And still is.. Unless the chopper had 9 additional gunners that must be the cargo listed there..
Even the line
unitName in (crew chopper) returns true after the group has boarded the chopper as cargo.
I have now tested this 80 times and it has worked each time so it must be your tests that were faulty..
The units were in their own group
So?
My test mission attached.
Radio 0-0-1: displays hint format ["%1",crew chopper],set to repeatedly
Radio 0-0-2: Teleports the group into the chopper (moveInCargo)
Radio 0-0-3: Makes the chopper pick up the group (with the amazing OFP/ArmA style)
And in each case every single soldier is returned in the hint output.
when the leader is in the crew (as cargo) of the vehicle a global chat is displayed.