innula

Untitled

Feb 3rd, 2013
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer toggle;
  2. default
  3. {
  4.     state_entry()
  5.     {
  6.        // llSay(0, "Hello, Avatar!");
  7.     }
  8.  
  9.     touch_start(integer total_number)
  10.     {
  11.        vector v = llList2Vector(llGetPrimitiveParams([PRIM_POS_LOCAL]),0);
  12.        toggle =!toggle;
  13.        if(toggle){
  14.            v.z+=0.1;
  15.         }
  16.         else{
  17.           v.z-=0.1;
  18.         }
  19.       //  llOwnerSay((string)v);
  20.         llSetPrimitiveParams([PRIM_POS_LOCAL,v, PRIM_TEXT,(string)v, <1.0,1.0,1.0>,0.0]);
  21.         //changing inivisble hovertext is a hack to make sure the viewer actually registers small movements in attachments
  22.  
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment