_marker      = _this select 0;
_markermove  = _this select 1;


_group     = grpNull;
_driver    = objNull;
_gunner    = objNull;
_commander = objNull;
_tank      = objNull;
_tanks     = [];
_units     = [];

while {true} do
{
   _tanks     = [];
   _units     = [];
   _group = createGroup resistance;


   _group addWaypoint [getMarkerPos _markermove, 0];

   [_group, 1] setWaypointType "SAD";
   [_group, 1] setWaypointFormation "COLUMN";
   [_group, 1] setWaypointBehaviour "SAFE";
   [_group, 1] setWaypointCombatMode "RED";

   for [{_i=0},{_i < 4},{_i=_i+1}] do
   {
      _pos = [(getMarkerPos _marker select 0)+sin(90)*(_i*20),(getMarkerPos _marker select 1)+cos(90)*(_i*20)];
      _type = "Vulcan_RACS";
      if (random 1 > 0.4) then
      {
         _type = "M113_RACS";
      };
      _tank = createVehicle [_type, _pos, [], 0, "NONE"];
      _tank setPos _pos;
      _tank setDir 0;

      _tank SetVehicleInit "res = [This] execVM ""mando_missiles\units\mando_onlymandoones.sqf""";     

      _tanks = _tanks + [_tank];      

      _gunner = _group createUnit ["SoldierGCrew",[0,0,30], [], 0, "NONE"];
      _gunner setskill 0.1;
      _gunner setBehaviour "AWARE";
      _gunner moveInGunner _tank;
      _units = _units + [_gunner];

      if (_i == 0) then
      {
         _gunner setRank "CORPORAL";
         _group selectLeader _gunner;
      }
      else
      {
         _gunner setRank "PRIVATE";
      };
      
      _units = _units + [_gunner];

      _driver = _group createUnit ["SoldierGCrew",[0,0,30], [], 0, "NONE"];
      _driver setRank "PRIVATE";
      _driver setskill 0.1;
      _driver setBehaviour "AWARE";
      _driver moveInDriver _tank;
      _units = _units + [_driver];

   };
   processInitCommands;

   while {({canFire _x} count _tanks) > 0} do
   {
      Sleep 10;
   };

   Sleep 20;   
   {deleteVehicle _x} forEach _units;
   {deleteVehicle _x} forEach _tanks;
   deleteGroup _group;
   Sleep 120;
};
