SHARE
TWEET

Untitled

a guest Sep 21st, 2019 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. default
  2. {
  3.     state_entry()
  4.     {
  5.         llCollisionSound("",0.0);
  6.         llSetStatus(STATUS_PHYSICS|STATUS_BLOCK_GRAB_OBJECT,FALSE);
  7.     }
  8.  
  9.     touch_start(integer total_number)
  10.     {
  11.         llWhisper(0, "touch_start:"+(string)llDetectedTouchST(0));
  12.     }
  13.     touch_end(integer total_number)
  14.     {
  15.         llWhisper(0, "touch_end:"+(string)llDetectedTouchST(0));
  16.     }
  17.     touch(integer total_number)
  18.     {
  19.         llWhisper(0, "touch:"+(string)llDetectedTouchST(0));
  20.     }
  21.     changed(integer change) {
  22.         if (change & CHANGED_LINK) {
  23.             if (llGetObjectPrimCount(llGetKey()) != llGetNumberOfPrims()) {
  24.                 llOwnerSay("sit");
  25.                 llSetStatus(STATUS_PHYSICS|STATUS_BLOCK_GRAB_OBJECT,TRUE);
  26.                 llSetLinkPrimitiveParamsFast(2,[PRIM_DESC,(string)llFrand(1)]);
  27.             } else {
  28.                 llOwnerSay("stand");
  29.                 llSetStatus(STATUS_PHYSICS|STATUS_BLOCK_GRAB_OBJECT,FALSE);
  30.                 llSetLinkPrimitiveParamsFast(2,[PRIM_DESC,(string)llFrand(1)]);
  31.             }
  32.         }
  33.         if (change & CHANGED_REGION) {
  34.             llOwnerSay("region change");
  35.         }
  36.     }
  37. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top