//--- OBJECT WRITE BEGIN ---
new SimGroup(MissionGroup) {

   new ScriptObject(MissionInfo) {
         desc0 = "Tutorial";
         image = "fps/client/ui/orbz/courses/bootCamp.jpg";
         descLines = "2";
         name = "Tutorial";
   };
   new MissionArea(MissionArea) {
      area = "-544 -544 1040 1056";
      flightCeiling = "300";
      flightCeilingRange = "20";
         locked = "true";
   };
   new Sky(Sky) {
      position = "336 136 0";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      cloudHeightPer[0] = "0.349971";
      cloudHeightPer[1] = "0.3";
      cloudHeightPer[2] = "0.199973";
      cloudSpeed1 = "0.0005";
      cloudSpeed2 = "0.001";
      cloudSpeed3 = "0.0003";
      visibleDistance = "1200";
      useSkyTextures = "1";
      renderBottomTexture = "0";
      SkySolidColor = "0.000000 0.800000 0.900000 1.000000";
      fogDistance = "800";
      fogColor = "0.000000 0.800000 0.900000 1.000000";
      fogVolume1 = "0 0 0";
      fogVolume2 = "0 0 0";
      fogVolume3 = "0 0 0";
      materialList = "~/data/skies/sky_day.dml";
      windVelocity = "1 1 0";
      windEffectPrecipitation = "1";
      fogVolumeColor1 = "128.000000 128.000000 128.000000 -1734829824.000000";
      fogVolumeColor2 = "128.000000 128.000000 128.000000 -1734829824.000000";
      fogVolumeColor3 = "128.000000 128.000000 128.000000 -1734829824.000000";
         locked = "true";
   };
   new Sun() {
      direction = "0.610098 0.610098 -0.50553";
      color = "1.000000 1.000000 1.000000 1.000000";
      ambient = "0.400000 0.400000 0.400000 1.000000";
         locked = "true";
         position = "0 0 0";
         rotation = "1 0 0 0";
         scale = "1 1 1";
   };
   new TerrainBlock(Terrain) {
      rotation = "1 0 0 0";
      scale = "1 1 1";
      detailTexture = "~/data/terrains/details/blank";
      terrainFile = "./w0_z1.ter";
      squareSize = "8";
         locked = "true";
         position = "-1024 -1024 0";
   };
   new SimGroup(startingPlatforms) {

      new InteriorInstance(ZonePad4) {
         position = "416.374 -94.9788 223.5";
         rotation = "0 0 1 187.931";
         scale = "1 1 1";
         interiorFile = "~/data/interiors/sg_startpad1.dif";
         showTerrainInside = "0";
         bounceFriction = "0";
         bounceElasticity = "0";
         rollingFriction = "0";
            used = "0";
            startingPlatform = "1";
      };
   };
   new SimGroup(powerups) {

      new CourseTarget(tutorialPowerup1) {
         position = "303.103 -90.2364 210.536";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "PowerupTarget";
         magnetForce = "0";
         nbrPowerups = "1";
         powerup0 = "MoneyBallPowerup";
         chance0 = "1";
      };
      new CourseTarget(tutorialPowerup2) {
         position = "24.4381 52.1659 434.494";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "PowerupTarget";
         magnetForce = "0";
         nbrPowerups = "1";
         powerup0 = "MoneyBallPowerup";
         chance0 = "1";
      };
   };
   new SimGroup(teleportals) {

      new CourseTarget(tutorialTeleportal1) {
         position = "31.3229 131.28 256.645";
         rotation = "0.00498858 0.00039574 0.999987 184.675";
         scale = "1 1 1";
         dataBlock = "TeleportalTarget";
         magnetForce = "0";
            link = "tutorialTeleportal2";
         nbrLinks = 1;
         link0 = "courseTargetHighRed";
      };
      new CourseTarget(tutorialTeleportal2) {
         position = "4.71715 -21.6039 432.623";
         rotation = "0 0 1 0.570611";
         scale = "1 1 1";
         dataBlock = "TeleportalTarget";
         magnetForce = "0";
            link = "tutorialTeleportal1";
      };
   };
   new SimGroup(accelerators) {

      new CourseTarget(tutorialAccelerator) {
         position = "159.614 -91.6271 236.777";
         rotation = "-0.842069 -0.18453 -0.506821 68.681";
         scale = "1 1 1";
         dataBlock = "AcceleratorTarget";
         magnetForce = "0";
            power = "135";
      };
   };
   new SimGroup(bonusTargets) {
   };
   new SimGroup(targets) {
      new CourseTarget(tutorialTarget1) {
         position = "237.342 -203.121 209";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget(tutorialTarget2) {
         position = "305.391 -273.365 207.222";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
         targetPoints = "100";
      };
      new CourseTarget(tutorialTarget3) {
         position = "161.115 -225.276 221.250";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetMid";
         magnetForce = "0";
         targetPoints = "200";
      };
      new CourseTarget(tutorialTarget4) {
         position = "337.640 -174.874 215.681";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetHigh";
         magnetForce = "0";
         targetPoints = "300";
      };
      new CourseTarget(tutorialTarget5) {
         position = "259.315 -80.876 211.800";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget(tutorialTarget6) {
         position = "84.896 -46.242 267.197";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "BonusTarget";
         magnetForce = "0";
         targetPoints = "400";
      };
   };
   new fxSunLight(fxSunLight1) {
      position = "-600 500 500";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      Enable = "1";
      SunAzimuth = "240";
      SunElevation = "38";
      FlareTP = "1";
      FlareBitmap = "common/lighting/corona";
      FlareColour = "1.000000 0.750000 0.250000 1.000000";
      Brightness = "0.3";
      FlareSize = "2";
      FadeTime = "0.1";
      BlendMode = "0";
      AnimColour = "0";
      AnimBrightness = "0";
      AnimRotation = "0";
      LinkFlareSize = "0";
      MinColour = "0.000000 0.000000 0.000000 1.000000";
      MaxColour = "1.000000 1.000000 1.000000 1.000000";
      MinBrightness = "0";
      MaxBrightness = "1";
      MinRotation = "0";
      MaxRotation = "359";
      SingleColourKeys = "1";
      RedKeys = "AZA";
      GreenKeys = "AZA";
      BlueKeys = "AZA";
      BrightnessKeys = "AZA";
      RotationKeys = "AZA";
      ColourTime = "5";
      BrightnessTime = "5";
      RotationTime = "5";
      LerpColour = "1";
      LerpBrightness = "1";
      LerpRotation = "1";
   };
   new InteriorInstance() {
      position = "4.15723 22.9546 416.379";
      rotation = "0 0 1 90.5273";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/roman_platform3.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new WaterBlock(Water) {
      position = "-1024 -1024 -100.2";
      rotation = "1 0 0 0";
      scale = "2048 2048 297";
      UseDepthMask = "1";
      surfaceTexture = "~/data/water/wash2";
      ShoreTexture = "~/data/water/wash";
      envMapOverTexture = "~/data/skies/day_0007";
      envMapUnderTexture = "~/data/water/water";
      liquidType = "RiverWater";
      density = "100";
      viscosity = "100";
      waveMagnitude = "2";
      surfaceOpacity = "0.9";
      envMapIntensity = "0.6";
      TessSurface = "50";
      TessShore = "70";
      SurfaceParallax = "0.75";
      FlowAngle = "0";
      FlowRate = "0.1";
      DistortGridScale = "0.1";
      DistortMag = "0.05";
      DistortTime = "2";
      ShoreDepth = "25";
      DepthGradient = "1";
      MinAlpha = "0.1";
      MaxAlpha = "0.9";
      removeWetEdges = "0";
   };
   new InteriorInstance() {
      position = "388.879 -229.979 215.017";
      rotation = "0 0 1 13.751";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/sg_pillar3.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new InteriorInstance() {
      position = "110.684 3.41494 252.338";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/sg_pillar1.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new InteriorInstance() {
      position = "22.6289 -47.1963 252.005";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/sg_pillar1.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new InteriorInstance() {
      position = "-17.7185 -128.972 243.961";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/sg_pillar1.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new InteriorInstance() {
      position = "-3.71161 -225.289 225.432";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/sg_pillar1.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new InteriorInstance() {
      position = "54.2623 -298.113 216.347";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/sg_pillar1.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new InteriorInstance() {
      position = "132.077 -351.646 215.076";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/sg_pillar1.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new InteriorInstance() {
      position = "228.24 -377.058 215.089";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/sg_pillar1.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new InteriorInstance() {
      position = "332.218 -363.513 214.967";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/sg_pillar1.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new AudioEmitter() {
      position = "176.785 -430.587 300.321";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      fileName = "~/data/sound/environment/birds02.ogg";
      useProfileDescription = "0";
      outsideAmbient = "1";
      volume = "1";
      isLooping = "1";
      is3D = "1";
      referenceDistance = "50";
      maxDistance = "500";
      coneInsideAngle = "360";
      coneOutsideAngle = "360";
      coneOutsideVolume = "1";
      coneVector = "0 0 1";
      loopCount = "-1";
      minLoopGap = "5000";
      maxLoopGap = "20000";
      type = "2";
   };
   new AudioEmitter() {
      position = "-149.778 195.778 327.521";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      fileName = "~/data/sound/environment/birds02.ogg";
      useProfileDescription = "0";
      outsideAmbient = "1";
      volume = "1";
      isLooping = "1";
      is3D = "1";
      referenceDistance = "50";
      maxDistance = "500";
      coneInsideAngle = "360";
      coneOutsideAngle = "360";
      coneOutsideVolume = "1";
      coneVector = "0 0 1";
      loopCount = "-1";
      minLoopGap = "5000";
      maxLoopGap = "20000";
      type = "2";
   };
};
//--- OBJECT WRITE END ---

//cleanPathMission();
//%obj1 = addPathDynamicObject( "Test", "fps/data/shapes/moving/goober.dts", "Path1" );
//%obj2 = addPathDynamicObject( "Test", "fps/data/shapes/moving/goober.dts", "Path2" );
//%obj3 = addPathDynamicObject( "Test", "fps/data/shapes/moving/goober.dts", "Path3" );
//attachPathTrigger(%obj2, "Trigger1");
//attachPathTrigger(%obj2, "Trigger3");
//attachChangePathTrigger( %obj1, "Trigger2", "Path2", 10 );
//attachAnimateTrigger( %obj1, "Trigger4", "run" );
//activateAllDyn(false);
