Advertisement
Gayngel

Touch face texture changer

Apr 5th, 2015
597
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. default
  2. {
  3. touch_start(integer num_detected)
  4. {
  5. integer face = llDetectedTouchFace(0);
  6. string texture = "name or uuid of texture";
  7.  
  8. if (face == TOUCH_INVALID_FACE)
  9. {
  10. llOwnerSay("The touched face could not be determined");
  11. }
  12. else
  13. {
  14. llSetPrimitiveParams([PRIM_TEXTURE,face,texture,<1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0]); // face,texture,repeats, offset, rotation.
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement