_gxpos=[(_gxpos select 0)+random _Radius*2,(_gxpos select 1)+random _Radius,(_gxpos select 2)];
_GrptoSpawn = [_gxpos, _side, _grpof] call BIS_fnc_spawnGroup;
{[_x] joinsilent (group Player)} foreach units _GrptoSpawn;
deletegroup _GrptoSpawn;
sleep 0.01;
group Player selectLeader Player;
snipped a fair bit out but youl get the idea then
_m = [position player,"Armored","USMC",80] execvm "SpwnGrp.sqf"; etc
_m select _x foreach. and set them to do what you want.