SHARE
TWEET

Untitled

a guest Aug 11th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. list sides=[4, 6, 8, 10, 77, 78];
  2. vector pink=<1.000, 0.682, 0.855>;
  3.  
  4. recolour(vector colour)
  5. {
  6.     llSetLinkPrimitiveParams(LINK_SET,[PRIM_COLOR,-1,colour,1.0]);
  7.     rewhiten();
  8. }
  9.  
  10. rewhiten()
  11. {
  12.     integer i;
  13.     for(i=0;i<=llGetListLength(sides);++i)
  14.     {
  15.         llSetLinkColor(llList2Integer(sides,i),pink,-1);
  16.     }
  17. }
  18. default
  19. {
  20.     state_entry()
  21.     {
  22.         llListen(-3396,"","","");
  23.     }
  24.     listen(integer chan,string name,key id,string msg)
  25.     {
  26.         key test;
  27.         vector temp;
  28.         test=llList2Key(llGetObjectDetails(id,[OBJECT_OWNER]),0);
  29.         if(test == llGetOwner())
  30.         {
  31.             temp=(vector)msg;
  32.             recolour(temp);
  33.         }
  34.     }
  35. }
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