assumed I donÂ't know the vehicle name :
; // [this] exec "cap_check.sqs"
_veh = _this select 0
_dumbobj = "BISCamelPilot"
_pos = [((getpos _veh) select 0) + 20, (getpos _veh) select 1]
_dumbunits = []
_space = 0
_i = 0
#loo
_dumb = _dumbobj createVehicle _pos
_dumbunits = _dumbunits + [_dumb]
~0.1
_dumb moveincargo _veh
~0.1
if(_dumb in (crew _veh)) then { _space = _space + 1 } else { goto "exit" }
~0.1
_i = _i + 1
goto "loo"
#exit
"_x action[""EJECT"",vehicle _x]; deleteVehicle _x" foreach _dumbunits
hint format["%1 seats remaining", _space]
exit
any other ideas ?