Advertisement
itoibo

stacked prims

Feb 5th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //makes a series of linked prims stack above each other
  2.  
  3. linkedPrimList()
  4. {
  5.      integer primCount = llGetNumberOfPrims();
  6.      integer c = primCount;
  7.      float xPos = 0.0;
  8.      float yPos = 0.0;
  9.      float zPos = 0.0;
  10.      float addZ = 0.1;
  11.      vector stackPos = <xPos, yPos, addZ>;
  12.      float rate = 1.0;
  13.      
  14. //this puts all of the linked children in the same spot above the root. i need link 2 to be just above the root, link 3 to be just above link 2, etc.
  15.      for(c; c > 1; c--)
  16.      {
  17.         //i = stackPos;
  18.  
  19. //        for(i; i >= endAlpha; i -= fadeRate)
  20.         //{
  21.             llSetLinkPrimitiveParamsFast(c, [PRIM_POS_LOCAL, stackPos]);
  22.             llOwnerSay((string)c); // + " " + (string)i);
  23.             llSleep(rate);//0.3
  24.             //stackPos+=;
  25.         //}
  26.     }
  27. }
  28.  
  29.  
  30.  
  31. default
  32. {
  33.     state_entry()
  34.     {
  35.         linkedPrimList();
  36.     //    llSleep(5.0);
  37.       //  llResetScript();
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement