Advertisement
Guest User

Untitled

a guest
Mar 18th, 2017
817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////
  2. ////////////////// [ MESH WORKSHOP SCRIPTS ]///////////////////////
  3. //////////////////////////////////////////////////////////////////
  4.  
  5. integer ch=-00010; //Same unique 5 digit number as controller.
  6.  
  7. integer side = ALL_SIDES; //Side to apply the texture to.
  8. // ALL_SIDES = All sides of the object.
  9. // Numbers 1-8 = Face number of the object.
  10.  
  11. //////////////////////////////////////////////////////////////////
  12. //////////////////////////////////////////////////////////////////
  13. //////////////////////////////////////////////////////////////////
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. default
  21. {
  22. state_entry()
  23. {
  24. llListen(ch,"",NULL_KEY,"");
  25. }
  26.  
  27. listen(integer ch, string name, key id, string msg)
  28. {
  29. if (llGetOwner() == llGetOwnerKey(id))
  30. {
  31. llSetTexture(llGetSubString(msg,0,-1),side);
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement