_hangar = _this select 0;
_type   = _this select 1;
_delta  = _this select 2;

while {true} do
{
   scudw_pct = 0;
   publicVariable "scudw_pct";

   while {scudw_pct < 100} do
   {
      Sleep 15;
      if (damage _hangar > 0.8) then
      {
         scudw_pct = scudw_pct + (_delta / 2.0);
      }
      else
      {
         scudw_pct = scudw_pct + _delta;
      };
      publicVariable "scudw_pct";
   };

   _a10 = createVehicle [_type, (getPos _hangar), [], 0, "NONE"];
   _a10 setDir 90;
   _a10 SetVehicleInit "res = [This] execVM ""mando_missiles\units\mando_onlymandoones.sqf""";
   processInitCommands;
   group player reveal _a10;


   while {alive _a10} do
   {
      Sleep 2;
   };

   scudw_pct = 0;
   publicVariable "scudw_pct";

   Sleep 2;
   splashonee = false;  
   Sleep 16;
   deleteVehicle _a10;
   Sleep 2;
};
