SHARE
TWEET

Untitled

a guest Dec 8th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer cylinder;
  2. default
  3. {
  4.     state_entry()
  5.     {
  6.         integer i;
  7.         while (i < llGetNumberOfPrims())
  8.         {
  9.             string name = llList2String(llGetLinkPrimitiveParams(i,[PRIM_NAME]),0);
  10.             if (name == "cylinder"){cylinder = i; llOwnerSay("found cylinder " + (string)i);}
  11.             i++;
  12.         }
  13.     }
  14.  
  15.     touch_start(integer total_number)
  16.     {
  17.         vector chamber = llRot2Euler(llList2Rot(llGetLinkPrimitiveParams(4,[PRIM_ROT_LOCAL]),0));
  18.         chamber.y += (60 * DEG_TO_RAD);
  19.         llOwnerSay((string)chamber);
  20.         llSetLinkPrimitiveParams( cylinder, [PRIM_ROT_LOCAL, llEuler2Rot(chamber)]);
  21.     }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top