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

   new ScriptObject(MissionInfo) {
         name = "Starlight";
         sortIndex = "13";
         image = "fps/client/ui/orbz/courses/starlite.jpg";
         size = "Expert";
         desc0 = "A simple new mission template.";
         descLines = "2";
         demo = "0";
   };
   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 = "500";
      useSkyTextures = "1";
      renderBottomTexture = "0";
      SkySolidColor = "0.000000 0.000000 0.000000 1.000000";
      fogDistance = "275";
      fogColor = "0.000000 0.000000 0.000000 1.000000";
      fogVolume1 = "0 0 0";
      fogVolume2 = "0 0 0";
      fogVolume3 = "0 0 0";
      materialList = "~/data/skies/csky_nite.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 = "0.450000 0.450000 0.700000 1.000000";
      ambient = "0.250000 0.250000 0.400000 1.000000";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         locked = "true";
         position = "0 0 0";
   };
   new TerrainBlock(Terrain) {
      rotation = "1 0 0 0";
      scale = "1 1 1";
      detailTexture = "~/data/terrains/details/blank";
      terrainFile = "./w4_z3.ter";
      squareSize = "8";
         locked = "true";
         position = "-1024 -1024 0";
   };
   new SimGroup(startingPlatforms) {

      new InteriorInstance(ZonePad1) {
         position = "-104.522 -186.258 223.5";
         rotation = "0 0 1 33.0499";
         scale = "1 1 1";
         interiorFile = "~/data/interiors/sg_startpad1.dif";
         showTerrainInside = "0";
         bounceFriction = "0";
         bounceElasticity = "0";
         rollingFriction = "0";
            used = "0";
            startingPlatform = "1";
      };
      new InteriorInstance(ZonePad2) {
         position = "-168.917 -123.072 223.4";
         rotation = "0 0 1 55.9682";
         scale = "1 1 1";
         interiorFile = "~/data/interiors/sg_startpad1.dif";
         showTerrainInside = "0";
         bounceFriction = "0";
         bounceElasticity = "0";
         rollingFriction = "0";
            used = "0";
            startingPlatform = "1";
      };
      new InteriorInstance(ZonePad1) {
         position = "-62.0249 -198.906 245.5";
         rotation = "0 0 1 29.6122";
         scale = "1 1 1";
         interiorFile = "~/data/interiors/sg_startpad1.dif";
         showTerrainInside = "0";
         bounceFriction = "0";
         bounceElasticity = "0";
         rollingFriction = "0";
            used = "0";
            startingPlatform = "1";
      };
      new InteriorInstance(ZonePad2) {
         position = "22.9869 -233.039 223.2";
         rotation = "0 0 -1 0.181308";
         scale = "1 1 1";
         interiorFile = "~/data/interiors/sg_startpad1.dif";
         showTerrainInside = "0";
         bounceFriction = "0";
         bounceElasticity = "0";
         rollingFriction = "0";
            used = "0";
            startingPlatform = "1";
      };
      new InteriorInstance(ZonePad3) {
         position = "43.0245 -242.01 226.8";
         rotation = "0 0 -1 7.6298";
         scale = "1 1 1";
         interiorFile = "~/data/interiors/sg_startpad1.dif";
         showTerrainInside = "0";
         bounceFriction = "0";
         bounceElasticity = "0";
         rollingFriction = "0";
            used = "0";
            startingPlatform = "1";
      };
      new InteriorInstance(ZonePad4) {
         position = "-132.859 -181.849 223.5";
         rotation = "0 0 1 38.7795";
         scale = "1 1 1";
         interiorFile = "~/data/interiors/sg_startpad1.dif";
         showTerrainInside = "0";
         bounceFriction = "0";
         bounceElasticity = "0";
         rollingFriction = "0";
            used = "0";
            startingPlatform = "1";
      };
      new InteriorInstance(ZonePad5) {
         position = "-146.569 -156.099 223.4";
         rotation = "0 0 1 41.0713";
         scale = "1 1 1";
         interiorFile = "~/data/interiors/sg_startpad1.dif";
         showTerrainInside = "0";
         bounceFriction = "0";
         bounceElasticity = "0";
         rollingFriction = "0";
            used = "0";
            startingPlatform = "1";
      };
      new InteriorInstance(ZonePad6) {
         position = "63.3447 -232.271 223";
         rotation = "0 0 -1 10.4947";
         scale = "1 1 1";
         interiorFile = "~/data/interiors/sg_startpad1.dif";
         showTerrainInside = "0";
         bounceFriction = "0";
         bounceElasticity = "0";
         rollingFriction = "0";
            used = "0";
            startingPlatform = "1";
      };
      new InteriorInstance(ZonePad7) {
         position = "-16.1742 -226.506 223.4";
         rotation = "0 0 1 21.5908";
         scale = "1 1 1";
         interiorFile = "~/data/interiors/sg_startpad1.dif";
         showTerrainInside = "0";
         bounceFriction = "0";
         bounceElasticity = "0";
         rollingFriction = "0";
            used = "0";
            startingPlatform = "1";
      };
      new InteriorInstance(ZonePad8) {
         position = "93.0564 -216.822 223";
         rotation = "0 0 -1 27.6836";
         scale = "1 1 1";
         interiorFile = "~/data/interiors/sg_startpad1.dif";
         showTerrainInside = "0";
         bounceFriction = "0";
         bounceElasticity = "0";
         rollingFriction = "0";
            used = "1";
            startingPlatform = "1";
      };
   };
   new SimGroup(powerups) {

      new CourseTarget() {
         position = "120.594 100.652 276.811";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "PowerupTarget";
         magnetForce = "0";
            nbrPowerups = "5";
            powerup0 = "StickyBallPowerup";
            powerup1 = "SuperShotPowerup";
            powerup2 = "TeleporterPowerup";
            powerup3 = "MoneyBallPowerup";
            powerup4 = "GooberPowerup";
            chance0 = "1";
            chance1 = "1";
            chance2 = "1";
            chance3 = "1";
            chance4 = "1";
      };
      new CourseTarget() {
         position = "21.301 31.6438 309.336";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "PowerupTarget";
         magnetForce = "0";
            nbrPowerups = "3";
            powerup0 = "TeleporterPowerup";
            powerup1 = "MoneyBallPowerup";
            powerup2 = "StickyBallPowerup";
            chance0 = "1";
            chance1 = "1";
            chance2 = "2";
      };
      new CourseTarget() {
         position = "23.2282 -0.866169 262.494";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "PowerupTarget";
         magnetForce = "0";
            nbrPowerups = "3";
            powerup0 = "MoneyBallPowerup";
            powerup1 = "FreezeFramePowerup";
            powerup2 = "StickyBallPowerup";
            chance0 = "1";
            chance1 = "1";
            chance2 = "2";
      };
   };
   new SimGroup(teleportals) {

      new CourseTarget(teleportal1) {
         position = "117.777 101.032 241.872";
         rotation = "0.579498 0.578809 -0.573727 120.292";
         scale = "1 1 1";
         dataBlock = "TeleportalTarget";
         magnetForce = "0";
            link = "teleportal2";
      };
      new CourseTarget(teleportal2) {
         position = "-60.1431 -199.016 226.338";
         rotation = "-0.0141342 0.00499948 0.999888 38.9628";
         scale = "1 1 1";
         dataBlock = "TeleportalTarget";
         magnetForce = "0";
            link = "teleportal1";
      };
   };
   new SimGroup(accelerators) {

      new CourseTarget() {
         position = "167.293 267.446 232.272";
         rotation = "0.0334608 0.132626 0.990601 205.31";
         scale = "1 1 1";
         dataBlock = "AcceleratorTarget";
         magnetForce = "0";
            power = "175";
      };
   };
   new SimGroup(bonusTargets) {

      new CourseTarget() {
         position = "39.322 68.095 219";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "BonusTarget";
         magnetForce = "0";
            targetPoints = "400";
      };
      new CourseTarget() {
         position = "116.934 70.1684 254.738";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "BonusTarget";
         magnetForce = "0";
            targetPoints = "400";
      };
      new CourseTarget() {
         position = "35.753 93.612 296.43";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "BonusTarget";
         magnetForce = "0";
            targetPoints = "400";
      };
      new CourseTarget() {
         position = "-1.9884 56.9972 261.179";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "BonusTarget";
         magnetForce = "0";
            targetPoints = "400";
      };
      new CourseTarget() {
         position = "117.494 101 218.4";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "BonusTarget";
         magnetForce = "0";
            targetPoints = "400";
      };
      new CourseTarget() {
         position = "21.6903 31.6148 293.947";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "BonusTarget";
         magnetForce = "0";
            targetPoints = "400";
      };
      new CourseTarget() {
         position = "23.596 -68.2714 276.708";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "BonusTarget";
         magnetForce = "0";
            targetPoints = "400";
      };
      new CourseTarget() {
         position = "55.1421 -34.7622 254.356";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "BonusTarget";
         magnetForce = "0";
            targetPoints = "400";
      };
      new CourseTarget() {
         position = "-44.2019 101.242 254.039";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "BonusTarget";
         magnetForce = "0";
            targetPoints = "400";
      };
   };
   new SimGroup(Targets) {

      new CourseTarget() {
         position = "22.9139 29.8166 277.241";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget(courseTargetB1) {
         position = "20.851 95.2055 335.851";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetMid";
         magnetForce = "0";
            targetPoints = "200";
      };
      new CourseTarget(courseTargetC1) {
         position = "-31.4561 -86.6523 372.275";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetMid";
         magnetForce = "0";
            targetPoints = "200";
      };
      new CourseTarget(courseTargetD2) {
         position = "6.67095 -76.931 433.594";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetHigh";
         magnetForce = "0";
            targetPoints = "300";
      };
      new CourseTarget(courseTargetD1) {
         position = "10.0596 80.1726 417.419";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetHigh";
         magnetForce = "0";
            targetPoints = "300";
      };
      new CourseTarget() {
         position = "-9.04293 101.465 261.806";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "-2.22516 57.2833 277.53";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "88.1731 117.234 278.399";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "0.347318 -79.3036 263.081";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget(courseTargetC2) {
         position = "108.194 -44.0957 366.277";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetMid";
         magnetForce = "0";
            targetPoints = "200";
      };
      new CourseTarget() {
         position = "88.3149 84.6631 293.997";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "75.9056 71.1237 263.646";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "119.52 107.11 262.928";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "55.4142 33.2585 247.414";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "94.1408 35.6974 262.084";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "45.1512 9.70963 265.304";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "-67.1965 110.072 286.981";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "89.4542 -36.7096 255.25";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "59.7795 30.4559 279.692";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "-8.53472 29.8819 261.63";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget(courseTargetD3) {
         position = "9.7705 9.00745 403.825";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetHigh";
         magnetForce = "0";
            targetPoints = "300";
      };
      new CourseTarget() {
         position = "56.697 -70.3027 261.16";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "-7.94402 27.2777 279.856";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "53.1815 -37.3445 280.932";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetMid";
         magnetForce = "0";
            targetPoints = "200";
      };
      new CourseTarget() {
         position = "-44.6543 -59.649 245.417";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "-46.0724 -67.3318 278.918";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "90.0719 -67.6432 277.048";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "-40.3835 98.0309 277.445";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "42.1407 -36.269 239.225";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "86.5404 101.579 252.93";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "57.1256 33.5298 295.077";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "21.5208 -35.4938 263.652";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "1.02815 89.3549 303.222";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget() {
         position = "41.7159 66.4541 281.425";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetLow";
         magnetForce = "0";
            targetPoints = "100";
      };
      new CourseTarget(courseTargetB2) {
         position = "-85.1231 138.352 369.981";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "NormalTargetMid";
         magnetForce = "0";
            targetPoints = "200";
      };
   };
   new SimGroup(wayPoints) {
      new CourseTarget(wayPointA1) {
         position = "21.301 31.6438 309.336";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "TargetWayPoint";
         magnetForce = "0";
         nbrLinks = 2;
         link0 = "wayPointB1";
         link1 = "wayPointC1";
      };

      new CourseTarget(wayPointB1) {
         position = "97.7232 94.1715 347.736";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "TargetWayPoint";
         magnetForce = "0";
         nbrLinks = 3;
         link0 = "courseTargetB1";
         link1 = "courseTargetB2";
         link2 = "wayPointD1";
         
      };

      new CourseTarget(wayPointC1) {
         position = "-53.6561 -86.6523 346.475";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "TargetWayPoint";
         magnetForce = "0";
         nbrLinks = 3;
         link0 = "courseTargetC1";
         link1 = "courseTargetC2";
         link2 = "wayPointD1";
      };

      new CourseTarget(wayPointD1) {
         position = "14.7717 78.9035 412.136";
         rotation = "1 0 0 0";
         scale = "1 1 1";
         dataBlock = "TargetWayPoint";
         magnetForce = "0";
         nbrLinks = 3;
         link0 = "courseTargetD1";
         link1 = "courseTargetD2";
         link2 = "courseTargetD3";
      };
   };
   new InteriorInstance() {
      position = "9.87496 8.88256 407.299";
      rotation = "0 0 1 89.9544";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/const_plat1.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new InteriorInstance() {
      position = "20.6162 94.8228 340.251";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/const_plat1.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new InteriorInstance() {
      position = "23.0189 32.0898 271.497";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/const_build3.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new InteriorInstance() {
      position = "25.7187 -87.9102 341.275";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      interiorFile = "~/data/interiors/const_plat1.dif";
      showTerrainInside = "0";
      bounceFriction = "0";
      bounceElasticity = "0";
      rollingFriction = "0";
   };
   new fxLightDB() {
      position = "22.703 -84.7102 225.3";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "fxDefaultLight";
      Enable = "1";
      IconSize = "1";
   };
   new fxLightDB() {
      position = "0.703002 149.29 225.5";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "fxDefaultLight";
      Enable = "1";
      IconSize = "1";
   };
   new fxLightDB() {
      position = "114.103 32.0898 225.3";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      dataBlock = "fxDefaultLight";
      Enable = "1";
      IconSize = "1";
   };
};
//--- 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);
