Advertisement
Guest User

gaia terrain script

a guest
Oct 9th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.95 KB | None | 0 0
  1. using System.Collections;
  2. using UnityEngine;
  3.                
  4. public class MyTerrainScript2 : StampScriptBase
  5. {
  6.     protected override IEnumerator ScriptRunner()
  7.     {
  8.         operation = Gaia.Constants.FeatureOperation.AddHeight;
  9.         stampStrength = new AnimationCurve( new Keyframe(0.7490571f, 1.01278f, -9.660287f, -9.660287f),new Keyframe(0.9995705f, 0.002571404f, -5.952873f, -5.952873f));
  10.         width = 35.5f;
  11.         height = 16f;
  12.         rotation = 23.00013f;
  13.         position = new Vector3(3008f,541f,3630f);
  14.         SetStamp(@"Assets/Gaia/Stamps/Mountains/Mountain Field 0924 a.jpg");
  15.         yield return Stamp();
  16.  
  17.         rotation = 69f;
  18.         position = new Vector3(847f,541f,3426f);
  19.         yield return Stamp();
  20.  
  21.         operation = Gaia.Constants.FeatureOperation.SubtractHeight;
  22.         yield return Stamp();
  23.  
  24.         operation = Gaia.Constants.FeatureOperation.AddHeight;
  25.         rotation = 100f;
  26.         position = new Vector3(4679f,541f,4837f);
  27.         yield return Stamp();
  28.  
  29.         operation = Gaia.Constants.FeatureOperation.SubtractHeight;
  30.         yield return Stamp();
  31.  
  32.         operation = Gaia.Constants.FeatureOperation.AddHeight;
  33.         position = new Vector3(4962f,541f,1902f);
  34.         yield return Stamp();
  35.  
  36.         operation = Gaia.Constants.FeatureOperation.SubtractHeight;
  37.         yield return Stamp();
  38.  
  39.         operation = Gaia.Constants.FeatureOperation.AddHeight;
  40.         position = new Vector3(2351f,541f,1487f);
  41.         yield return Stamp();
  42.  
  43.         operation = Gaia.Constants.FeatureOperation.SubtractHeight;
  44.         yield return Stamp();
  45.  
  46.         operation = Gaia.Constants.FeatureOperation.StencilHeight;
  47.         stencilHeight = 0f;
  48.         stampStrength = new AnimationCurve( new Keyframe(0.0006638351f, 0.6060644f, 0f, 0f),new Keyframe(0.8493371f, 0.5991478f, -0.04538516f, -10.11965f),new Keyframe(0.9995705f, 0.002571404f, -6.438799f, -6.438799f));
  49.         width = 59.1f;
  50.         position = new Vector3(3355f,541f,2376f);
  51.         SetStamp(@"Assets/Gaia/Stamps/Mesas/Mesa 4.jpg");
  52.         yield return Stamp();
  53.        
  54.         stencilHeight = 1000f;
  55.         yield return Stamp();
  56.        
  57.  
  58.         rotation = 34f;
  59.         yield return Stamp();
  60.  
  61.  
  62.     }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement