Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. list pos;
  2. list rot;
  3. integer glisten;
  4. vector realpos;
  5. rotation realrot;
  6. default
  7. {
  8.     state_entry()
  9.     {
  10.         integer x;
  11.             x=2;
  12.        
  13.             do
  14.             {
  15.               vector q=llList2Vector(llGetLinkPrimitiveParams(x,[PRIM_POS_LOCAL]),0);
  16.               rotation h=llList2Rot(llGetLinkPrimitiveParams(x,[PRIM_ROT_LOCAL]),0);
  17.                 pos+=[q];
  18.                 rot+=[h];
  19.                 x=x+1;
  20.             }while(x<= llGetObjectPrimCount(llGetKey()));
  21.           llOwnerSay("Frame Recorded");
  22.            
  23.     }
  24.  
  25.     touch_start(integer total_number)
  26.     {
  27.         integer x;
  28.             //x=2;
  29.        list newlist;
  30.       // list newrot;
  31.       llSay(0, "llSetLinkPrimitiveParamsFast(1,[PRIM_POSITION,llGetPos(),34,");
  32.             do
  33.             {
  34.               vector q=llList2Vector(llGetLinkPrimitiveParams(x+2,[PRIM_POS_LOCAL]),0);
  35.               rotation h=llList2Rot(llGetLinkPrimitiveParams(x+2,[PRIM_ROT_LOCAL]),0);
  36. if(llList2Vector(pos,x)!=q||llList2Rot(rot,x)!=h)
  37. {
  38.     newlist+=[x+2];
  39.             if(llList2Vector(pos,x)!=q)
  40.             {
  41.                
  42.             newlist+=[33,q];
  43.             }
  44.             if(llList2Rot(rot,x)!=h)
  45.             {
  46.             newlist+=[29,h];
  47.             }
  48.             newlist+=[34];
  49.             }
  50.            
  51.             x=x+1;
  52.         }while(x+2<= llGetObjectPrimCount(llGetKey()));
  53.         newlist=llDeleteSubList(newlist,-1,-1);
  54.            llSay(0,llList2CSV(newlist)+"]);");
  55.            //we cann rebuild it.
  56.            llResetScript();
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement