------------------------------------------------------------
--     2008 Elite Games Team (R) All Rights Reserved      --
--             "STAR WOLVES 2: CIVIL WAR"                 --
------------------------------------------------------------

------------------------------------------------------------
-- Auto-built Quest-Action-file created by "MapBuilder2"  --
------------------------------------------------------------
--      "MapBuilder2" v.2.6 Elite Games Team              --
------------------------------------------------------------

--info:top=110,left=220,allvis=0;
function StartMission()
  if (labelPath == "Yes") then
    StartDialog("Dialog2");
    radar_01 = Player_Group:CreateRadar(Vector3(0,0,0),1000,0.1);
  elseif (curMoney < 50000) then
    StartDialog("Dialog3");
  else
    StartDialog("Dialog4");
  end;
end;


--info:top=150,left=290,allvis=0;
function Attack_Vks()
  new_SetAllGroupRelations(rep_vks_war, groups_for_rel);
  SetAllDied({flight_vks7,flight_vks8,flight_vks9}, GoTo_Station);
end;

--info:top=150,left=120,allvis=0;
function Pay_Vks()
  SubPlayerCredits(50000);
  Timer_Seq(1, GoTo_Station);
end;


--info:top=190,left=220,allvis=0;
function GoTo_Station()
  LineToStation = CreateLine(NP_PORTAL_U, navPoint_04, RGB(20,80,220), .3,TRUE,.2, 1);
  NewTrigger("inside", TrueCondition, Meeting_Sedoy, mothership, Br_Triada:GetPosition(), 130);
  if (curPoint ~= "6-02") then
    LastochkaSpeaker:Message("#L_Lastochka_05",3,"GoTo_Station_1");
  elseif (labelPath == "Yes") then
    radar_01 = Player_Group:CreateRadar(Vector3(0,0,0),2000,0.1);
  end;
end;


--info:top=230,left=220,allvis=0;
function GoTo_Station_1()
  new_SetAllGroupRelations(rep_neutral, groups_for_rel);
  HeroSpeaker:Message("#L_Hero_02",5,"GoTo_Station_2");
end;


--info:top=270,left=220,allvis=0;
function GoTo_Station_2()
  LastochkaSpeaker:Message("#L_Lastochka_11",3,"GoTo_Station_3");
end;


--info:top=310,left=220,allvis=0;
function GoTo_Station_3()
  HeroSpeaker:Message("#L_Hero_09",6,"GoTo_Station_4");
end;


--info:top=350,left=220,allvis=0;
function GoTo_Station_4()
  LastochkaSpeaker:Message("#L_Lastochka_12",5);
end;


--info:top=380,left=150,allvis=0;
function Meeting_Sedoy()
  if (flight_vks7:IsAlive()) then flight_vks7:Delete(); end;
  if (flight_vks8:IsAlive()) then flight_vks8:Delete(); end;
  if (flight_vks9:IsAlive()) then flight_vks9:Delete(); end;
  SetNormalTimeMode();
  MothershipFlight:Stop();
  SetQuestState("quest_6M", QUEST_DONE);
  SetQuestLabel("QuestPoint","0");
  curPoint = "0";
  LineToStation:Delete();
--------------------------------------------------------------------------------  
--  StartDialog("Dialog5");
  count_or_go_on();
--------------------------------------------------------------------------------  
end;

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

function count_or_go_on()
  if (pilot_El) or (pilot_Ace) or (pilot_Astra) or (pilot_Bavard) or (pilot_Joker) then
    if (count_pilots() >= 6) then
      choose_pilot();
    else
      StartDialog("Dialog5");
    end;
  else
    StartDialog("Dialog5");
  end; 
end;

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


--info:top=420,left=150,allvis=0;
function PickUp_Sedoy()
  AddPilotToPlayer(PilotSedoy);
  mothership:AddShipToInventory("Raptor_pl1", 1);
  StartDialog("Dialog6");
end;


--info:top=470,left=70,allvis=0;
function Wait_Patrol()
  NewVksFlight("Vks_Group_1", "vks7", mothership:GetPosition()+Vector3(-30, 10, 140), 1, 6, Vector3(1,0,0));
  flight_vks7:Move(mothership:GetPosition()+Vector3(-20, 10, 30));
  HeroSpeaker:Message("#L_Hero_03",6);
  new_SetAllGroupRelations(rep_vks_war, groups_for_rel);
  SetAllDied({flight_vks7}, After_Combat);
end;


--info:top=510,left=70,allvis=0;
function After_Combat()
  HeroSpeaker:Message("#L_Hero_04",3,"Find_EscapePod");
end;


--info:top=550,left=70,allvis=0;
function Find_EscapePod()
  capsule = CreateCarcass("Escape_Pod_R", mothership:GetPosition() + Vector3(40, 10, -10), Vector3(0,5, 0, 1));
  FocusOn({capsule}, Vector3(0,0.3,1), 2);
  LastochkaSpeaker:Message("#L_Lastochka_06",5,"Interrogate");
end;


--info:top=600,left=70,allvis=0;
function Interrogate()
  StopHere();
  NewTrigger("inside", TrueCondition, fin_AutoSave, mothership, PORTAL_U:GetPosition(), 75);
  StartDialog("Dialog7");
end;


--info:top=470,left=220,allvis=0;
function GoTo_Crash()
  new_SetAllGroupRelations(rep_vks_war, groups_for_rel);
  xyz_crash = xyz_bg + Vector3(500, 0, 100);
  navPoint_06 = CreateNavPoint("", xyz_crash, "nav_default.dds", RGB(255,255,255));
  LineToCrash = CreateLine(navPoint_04,navPoint_06, RGB(20,80,220), .3,TRUE,.2, 1);
  NewTrigger("inside", TrueCondition, Near_Crash, mothership, xyz_crash, 50);
  AddQuest("quest_6_03", "#L_Quest_6_03a", "#L_Quest_6_03b", QUEST_PROCESS);
end;


--info:top=510,left=220,allvis=0;
function Near_Crash()
  SetNormalTimeMode();
  MothershipFlight:Stop();
  LineToCrash:Delete();
  SetQuestState("quest_6_03", QUEST_DONE);
  HeroSpeaker:Message("#L_Hero_05",3,"Near_Crash_1");
end;


--info:top=550,left=220,allvis=0;
function Near_Crash_1()
  PilotSedoy:Message("#L_Sedoy_01",7,"Near_Crash_2");
end;


--info:top=590,left=220,allvis=0;
function Near_Crash_2()
  LastochkaSpeaker:Message("#L_Lastochka_07",5);
  navPoint_07 = CreateNavPoint("", xyz_bg+Vector3(75, 0, 30), "nav_default.dds", RGB(255,255,255));
  LineToCrash = CreateLine(navPoint_06, navPoint_07, RGB(20,80,220), .3,TRUE,.2, 1);
  NewTrigger("inside", TrueCondition, Near_Crash_3, mothership, xyz_bg+Vector3(75, 0, 30), 40);
end;


--info:top=630,left=220,allvis=0;
function Near_Crash_3()
  SetNormalTimeMode();
  SetQuestLabel("Gunslinger", "Yes");
  pos = mothership:GetPosition()
  sLen1 = SoundLength("#L_Hero_06") + 2;
  sLen2 = SoundLength("#L_Sedoy_02") + 2;
  sLen3 = SoundLength("#L_Lastochka_08") + 2;
  sLen4 = SoundLength("#L_Sedoy_03") + 2;
  sLen5 = SoundLength("#L_Hero_07") + 5;

  Anim_1 = CreateMovie(_ASIMUTHCAM);
  Anim_1:SetLength(sLen1+sLen2);
  Anim_1:SetInterpolate(_LINEAR);
  Anim_1:SetTarget(bg6);
  Anim_1:InitMovie(1, TRUE, 3);
  Anim_1:AddKeys(96.9442, 81.7718, 103.35, 0);
  Anim_1:AddKeys(141.7828, 75.6280, 103.35, (sLen1+sLen2)/2);
  Anim_1:AddKeys(180.8845, 73.0814, 103.35, sLen1+sLen2);
  Anim_1:AddScriptKey("Talk_1", 1);
  Anim_1:AddScriptKey("Talk_2", sLen1+1);
  Anim_1:AttachEscapeScript("Near_Crash_4");

  Anim_2 = CreateMovie(_ASIMUTHCAM);
  Anim_2:SetLength(sLen3+sLen4);
  Anim_2:SetInterpolate(_LINEAR);
  Anim_2:SetTarget(gsl);
  Anim_2:InitMovie(1, TRUE, 2);
  Anim_2:AddKeys(141.4821, 85.8990, 20.84, 0);
  Anim_2:AddKeys(75.5376, 79.2504, 5.51, (sLen3+sLen4)/2);
  Anim_2:AddKeys(41.3957, 61.9724, 5.51, sLen3+sLen4);
  Anim_2:AddScriptKey("Talk_3", 1);
  Anim_2:AddScriptKey("Talk_4", sLen3+1);
  Anim_2:AttachEscapeScript("Near_Crash_4");

  Anim_3 = CreateMovie(_ASIMUTHCAM);
  Anim_3:SetLength(sLen5);
  Anim_3:SetInterpolate(_LINEAR);
  Anim_3:SetTarget(bg5);
  Anim_3:InitMovie(1, TRUE, 2);
  Anim_3:AddKeys(230.2557, 91.0162, 20.84, 0);
  Anim_3:AddKeys(190.6906, 84.9086, 20.84, sLen5);
  Anim_3:AddScriptKey("Talk_5", 1);
  Anim_3:AttachEscapeScript("Near_Crash_4");
  Anim_3:AttachAction("Near_Crash_4");

  PlayList({Anim_1,Anim_2,Anim_3});
  NewTrigger("inside", TrueCondition, fin_AutoSave, mothership, PORTAL_U:GetPosition(), 75);
end;


--info:top=670,left=260,allvis=0;
function Talk_1()
  HeroSpeaker:Message("#L_Hero_06",4);
end;


--info:top=700,left=260,allvis=0;
function Talk_2()
  PilotSedoy:Message("#L_Sedoy_02",5);
end;


--info:top=730,left=260,allvis=0;
function Talk_3()
  LastochkaSpeaker:Message("#L_Lastochka_08",14);
end;


--info:top=760,left=260,allvis=0;
function Talk_4()
  PilotSedoy:Message("#L_Sedoy_03",6);
end;


--info:top=790,left=260,allvis=0;
function Talk_5()
  HeroSpeaker:Message("#L_Hero_07",8);
end;


--info:top=810,left=220,allvis=0;
function Near_Crash_4()
  MothershipFlight:Stop();
  navPoint_06:Delete();
  navPoint_07:Delete();
  LineToCrash:Delete();
  NewPirateFlight("Pir_Group_1", "pir1", mothership:GetPosition()+Vector3(100, 25, -90), 1, 9, Vector3(-0.5,0,0.5));
  NewPirateFlight("Pir_Group_1", "pir2", mothership:GetPosition()+Vector3(100, -10, -90), 1, 8, Vector3(-0.5,0,0.5));
  flight_pir1:Move(mothership:GetPosition()+Vector3(-40, 25, 40),TRUE);
  flight_pir2:Move(mothership:GetPosition()+Vector3(-40, -10, 40),TRUE);
  HeroSpeaker:Message("#L_Hero_10",2,"Attack_Pirates");
end;


--info:top=850,left=220,allvis=0;
function Attack_Pirates()
  SmugSpeaker:Message("#L_pirate_01",5);
  new_SetAllGroupRelations(rep_pir_war, groups_for_rel);
  SetAllDied({flight_pir1,flight_pir2}, GoTo_NJ3);
end;


--info:top=890,left=220,allvis=0;
function GoTo_NJ3()
  StartDialog("Dialog8");
end;


--info:top=930,left=150,allvis=0;
function Run_Away()
  AddQuest("quest_6_02", "#L_Quest_6_02a", "#L_Quest_6_02b", QUEST_PROCESS);
  xyz_mpos = mothership:GetPosition();
  nav_current = CreateNavPoint("", xyz_mpos,"nav_void.dds", RGB(255,255,255));
  LineToPortal = CreateLine(nav_current,NP_PORTAL_U,  RGB(20,80,220), .3,TRUE,.2, 1);
  new_SetAllGroupRelations(rep_vks_war, groups_for_rel);
  NewTrigger("side_object", TrueCondition, Attack_Mothership, "Vks", mothership, 150);
  Timer_Seq(60, MassAttack);
end;


--info:top=970,left=150,allvis=0;
function Attack_Mothership()
  if (flight_vks1:IsAlive()) then
    if (trig_F1Move) then
      trig_F1Move:Delete();
      trig_F1Move = NIL;
    end;
    flight_vks1:Escort(mothership);
    NewTrigger("f_object_inside", TrueCondition, Near_Object, flight_vks1, mothership, 100);
  end;
  if (flight_vks2:IsAlive()) then
    if (trig_F2Move) then
      trig_F2Move:Delete();
      trig_F2Move = NIL;
    end;
    flight_vks2:Escort(mothership);
    NewTrigger("f_object_inside", TrueCondition, Near_Object, flight_vks2, mothership, 100);
  end;
  if (flight_vks3:IsAlive()) then
    if (trig_F3Move) then
      trig_F3Move:Delete();
      trig_F3Move = NIL;
    end;
    flight_vks3:Escort(mothership);
    NewTrigger("f_object_inside", TrueCondition, Near_Object, flight_vks3, mothership, 100);
  end;
  if (flight_vks4:IsAlive()) then
    if (trig_F4Move) then
      trig_F4Move:Delete();
      trig_F4Move = NIL;
    end;
    flight_vks4:Escort(mothership);
    NewTrigger("f_object_inside", TrueCondition, Near_Object, flight_vks4, mothership, 100);
  end;
  if (flight_vks5:IsAlive()) then
    if (trig_F5Move) then
      trig_F5Move:Delete();
      trig_F5Move = NIL;
    end;
    flight_vks5:Escort(mothership);
    NewTrigger("f_object_inside", TrueCondition, Near_Object, flight_vks5, mothership, 100);
  end;
  if (flight_vks6:IsAlive()) then
    if (trig_F6Move) then
      trig_F6Move:Delete();
      trig_F6Move = NIL;
    end;
    flight_vks6:Escort(mothership);
    NewTrigger("f_object_inside", TrueCondition, Near_Object, flight_vks6, mothership, 100);
  end;
end;


--info:top=960,left=300,allvis=0;
function MassAttack()
  flight_vks3:Move(xyz_mpos);
  trig_F3Move = NewTrigger("f_inside", TrueCondition, Near_MPos3, flight_vks3, xyz_mpos, 50);
  flight_vks4:Move(xyz_mpos);
  trig_F4Move = NewTrigger("f_inside", TrueCondition, Near_MPos4, flight_vks4, xyz_mpos, 50);
  Timer_Seq(60, MassAttack_2);
end;


--info:top=990,left=340,allvis=0;
function Near_MPos3()
  trig_F3Move:Delete();
  trig_F3Move = NIL;
  flight_vks3:Patrol({Vector3(600, 50, -100), Vector3(0, -50, 500), Vector3(-850, 50, 0)}, TRUE);
end;


--info:top=1020,left=340,allvis=0;
function Near_MPos4()
  trig_F4Move:Delete();
  trig_F4Move = NIL;
  flight_vks4:Patrol({Vector3(-850, 50, 0), Vector3(600, 50, -100), Vector3(0, -50, 500)}, TRUE);
end;


--info:top=1010,left=150,allvis=0;
function Near_Object()
  local myTriggerContext = GetTriggerContext();
  local flight = myTriggerContext:GetFlight();
  local dest = myTriggerContext:GetDestinationObject();
  flight:Stop();
end;


--info:top=1040,left=300,allvis=0;
function MassAttack_2()
  flight_vks1:Move(xyz_mpos);
  trig_F1Move = NewTrigger("f_inside", TrueCondition, Near_MPos1, flight_vks1, xyz_mpos, 50);
  flight_vks2:Move(xyz_mpos);
  trig_F2Move = NewTrigger("f_inside", TrueCondition, Near_MPos2, flight_vks2, xyz_mpos, 50);
  Timer_Seq(30, MassAttack_3);
end;


--info:top=1070,left=340,allvis=0;
function Near_MPos1()
  trig_F1Move:Delete();
  trig_F1Move = NIL;
  flight_vks1:Patrol({xyz_mpos+Vector3(-150, 50, -200), xyz_mpos+Vector3(150, -50, -180), xyz_mpos+Vector3(150, 100, 200), xyz_mpos+Vector3(-170, -100, 180)}, TRUE);
end;


--info:top=1100,left=340,allvis=0;
function Near_MPos2()
  trig_F2Move:Delete();
  trig_F2Move = NIL;
  flight_vks2:Patrol({xyz_mpos+Vector3(150, 50, -180), xyz_mpos+Vector3(150, -100, 200), xyz_mpos+Vector3(-170, 100, 180), xyz_mpos+Vector3(-150, -50, -200)}, TRUE);
end;


--info:top=1120,left=300,allvis=0;
function MassAttack_3()
  flight_vks5:Move(xyz_mpos);
  trig_F5Move = NewTrigger("f_inside", TrueCondition, Near_MPos5, flight_vks5, xyz_mpos, 50);
  flight_vks6:Move(xyz_mpos);
  trig_F6Move = NewTrigger("f_inside", TrueCondition, Near_MPos6, flight_vks6, xyz_mpos, 50);
end;


--info:top=1150,left=340,allvis=0;
function Near_MPos5()
  trig_F5Move:Delete();
  trig_F5Move = NIL;
  flight_vks5:Patrol({Vector3(-700, 50, -200), Vector3(350, 50, -300), Vector3(400, 50, 200), Vector3(-800, 50, 300)}, TRUE);
end;


--info:top=1180,left=340,allvis=0;
function Near_MPos6()
  trig_F6Move:Delete();
  trig_F6Move = NIL;
  flight_vks6:Patrol({Vector3(350, 50, -300), Vector3(400, 50, 200), Vector3(-800, 50, 300), Vector3(-700, 50, -200)}, TRUE);
end;


--info:top=1150,left=70,allvis=0;
function fin_AutoSave()
  AutoSave("#AS_mission_6");
end;


--info:top=110,left=420,allvis=0;
function StartInitMis()
  VksTeam = CreateTeam("Vks");
  PirateTeam = CreateTeam("Pirates");

  MothershipPilot = mothership:GetPilot();
  MothershipFlight = MothershipPilot:GetFlight();

  Player_Group = MothershipPilot:GetGroup();
  Vks_Group_1 = VksTeam:CreateGroup("Vks_Group_1");
  Pir_Group_1 = VksTeam:CreateGroup("Pir_Group_1");
  groups_for_rel = {Vks_Group_1,Pir_Group_1,Player_Group};
  rep_neutral = {{"N"},
                 {"N","N"}};
  rep_vks_war = {{"X"},
                 {"W","X"}};
  rep_pir_war = {{"X"},
                 {"X","W"}};
  new_SetAllGroupRelations(rep_neutral, groups_for_rel);

  xyz_bg = Vector3(-520, 0, -250);
  bg1 = CreateCarcass("Btransport_destroyed", xyz_bg + Vector3(-20, 0, -30), Vector3(0.5, 0, 1));
  bg2 = CreateCarcass("Btransport_garbage", xyz_bg + Vector3(-30, 0, -10), Vector3(0, 0, 1));
  bg3 = CreateCarcass("Btransport_destroyed", xyz_bg + Vector3(-5, -30, -5), Vector3(0.5, 0.2, 0.5));
  bg4 = CreateCarcass("Btransport_garbage", xyz_bg + Vector3(0, 30, -24), Vector3(-0.5, 0.5, 1));
  bg5 = CreateCarcass("Btransport_destroyed", xyz_bg + Vector3(-30, -20, -20), Vector3(0.7, 0, 0.3));
  bg6 = CreateCarcass("Btransport_garbage", xyz_bg + Vector3(-20, 20, 0), Vector3(0.3, 0.6, 1));
  gsl = CreateCarcass("Gunslinger_crushes", xyz_bg + Vector3(-10, 5, 10), Vector3(0.3, -0.6, 0.6));
  LoadCloud("tech_round_s.cld", xyz_bg + Vector3(-40, 0, -20));

  NewVksFlight("Vks_Group_1", "vks1", Vector3(800, 15, -500), 1, 17, Vector3(1,0,0));
  flight_vks1:Patrol({Vector3(700, -100, -800), Vector3(300, 150, -900), Vector3(800, 15, -500)}, TRUE);
  NewVksFlight("Vks_Group_1", "vks2", Vector3(900, -10, 100), 1, 17, Vector3(1,0,0));
  flight_vks2:Patrol({Vector3(800, 100, -400), Vector3(900, 150, -900), Vector3(900, -10, 100)}, TRUE);
  NewVksFlight("Vks_Group_1", "vks3", Vector3(0, 10, -800), 1, 16, Vector3(1,0,0));
  flight_vks3:Patrol({Vector3(-500, 100, -800), Vector3(0, 10, -800)}, TRUE);
  NewVksFlight("Vks_Group_1", "vks4", Vector3(-300, 30, -950), 1, 16, Vector3(1,0,0));
  flight_vks4:Patrol({Vector3(-700, 200, -800), Vector3(-900, -100, -400), Vector3(-900, -200, -800), Vector3(-300, 30, -950)}, TRUE);
  NewVksFlight("Vks_Group_1", "vks5", Vector3(-600, -50, 900), 1, 17, Vector3(1,0,0));
  flight_vks5:Patrol({Vector3(-700, -100, 300), Vector3(-900, 0, 100), Vector3(-900, 100, 500), Vector3(-600, -50, 900)}, TRUE);
  NewVksFlight("Vks_Group_1", "vks6", Vector3(600, 130, 900), 1, 17, Vector3(1,0,0));
  flight_vks6:Patrol({Vector3(900, 250, 500), Vector3(600, 100, 600), Vector3(600, 130, 900)}, TRUE);
  if (curPoint ~= "6-02") then
    NewVksFlight("Vks_Group_1", "vks7", mothership:GetPosition()+Vector3(20, -10, -80), 1, 5, Vector3(1,0,0));
    NewVksFlight("Vks_Group_1", "vks8", mothership:GetPosition()+Vector3(40, 0, -90), 1, 3, Vector3(1,0,0));
    NewVksFlight("Vks_Group_1", "vks9", mothership:GetPosition()+Vector3(0, 0, -90), 1, 3, Vector3(1,0,0));
    curMoney = GetPlayerCredits();
  end;

  NewVksFlight("Vks_Group_1", "vks11", PORTAL_L:GetPosition()+Vector3(40, 10, 30), 2, 16, Vector3(1,0,0));
  NewVksFlight("Vks_Group_1", "vks12", PORTAL_L:GetPosition()+Vector3(40, 15, -30), 2, 16, Vector3(1,0,0));
  NewVksFlight("Vks_Group_1", "vks13", PORTAL_R:GetPosition()+Vector3(-40, -10, 30), 2, 16, Vector3(1,0,0));
  NewVksFlight("Vks_Group_1", "vks14", PORTAL_R:GetPosition()+Vector3(-40, 10, -40), 2, 16, Vector3(1,0,0));
  NewTrigger("side_inside", TrueCondition, No_Way, PLAYER_TEAM, PORTAL_L:GetPosition(), 100);
  NewTrigger("side_inside", TrueCondition, No_Way, PLAYER_TEAM, PORTAL_R:GetPosition(), 100);

  HeroSpeaker = GetPilot("Hero");
  LastochkaSpeaker = GetPilot("Lastochka");
  PilotSedoy = CreatePilot("Sedoy");
  SmugSpeaker = CreatePilot("m45_Trasher");

  ClearRoute();

  labelPath = GetQuestLabel("Quest6Path");
end;


--info:top=660,left=420,allvis=0;
function No_Way()
  new_SetAllGroupRelations(rep_vks_war, groups_for_rel);
  Anim_D = CreateMovie(_TARGETCAM);
  Anim_D:SetLength(6);
  Anim_D:SetInterpolate(_LINEAR);
  Anim_D:SetTarget(mothership);
  Anim_D:InitMovie(1, TRUE, 1);
  Anim_D:AddPosKey(mothership:GetPosition()+Vector3(60, 30, -30), 0);
  Anim_D:AddScriptKey("MShip_Blow", 4);
  Anim_D:Play();
  Anim_D:AttachEscapeScript("MShip_Blow");
  Anim_D:AttachAction("MShip_Blow");
end;


--info:top=700,left=420,allvis=0;
function MShip_Blow()
  if (mothership:IsAlive()) then
    mothership:Blow();
  end;
end;


--info:top=70,left=100,allvis=0;
function ACTION_INIT()
  _FTrader_exclude();
  curPoint = GetQuestLabel("QuestPoint");
  StartInitMis();

  if (curPoint ~= "6-02") then
    SetQuestLabel("QuestPoint","6-02");
    Timer_Seq(2, StartMission);
    SetQuestLabel("Gunslinger", "No");
  else
    Timer_Seq(1, GoTo_Station);
  end;
  return TRUE;
end;


--info:top=70,left=590,allvis=0;
function ACTION_LEAVELOCATION()
  if (LineToStation) then LineToStation:Delete(); end;
  if (LineToCrash) then LineToCrash:Delete(); end;
  if (LineToPortal) then LineToPortal:Delete(); end;
  if (navPoint_06) then navPoint_06:Delete(); end;
  if (navPoint_07) then navPoint_07:Delete(); end;
  if (nav_current) then nav_current:Delete(); end;
  if (radar_01) then Player_Group:DeleteRadar(radar_01); end;
  if (curPoint ~= "6-02") then
    if (GetQuestState("quest_6_03")==QUEST_PROCESS) then SetQuestState("quest_6_03", QUEST_FAILED); end;
    if (GetQuestState("quest_6_02")==QUEST_PROCESS) then SetQuestState("quest_6_02", QUEST_DONE); end;
    ClearQuestLabel("Quest6Path");
    QuestActionDone();
    QuestStart("mission_7");
  end;

  return TRUE;
end;


--info:top=70,left=490,allvis=0;
function ACTION_FINI()
  _FTrader_include();
  return TRUE;
end;
