innula

Untitled

Dec 6th, 2012
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer toggle;
  2. vector offset;
  3. default
  4. {
  5.     state_entry()
  6.     {
  7.         llSay(0, "Hello, Avatar!");
  8.     }
  9.  
  10.     touch_start(integer total_number)
  11.     {
  12.        toggle =!toggle;
  13.        list l = llGetLinkPrimitiveParams(2,[PRIM_POS_LOCAL,PRIM_ROT_LOCAL]);
  14.        rotation r = llList2Rot(l,1);
  15.        vector v = llList2Vector(l,0);
  16.        if(toggle){
  17.            v.z+=1.0;
  18.         }
  19.         else{
  20.           v.z-=1.0;
  21.         }
  22.            llSetLinkPrimitiveParamsFast(2,[PRIM_POS_LOCAL,v]);
  23.     }
  24.    
  25. }
Advertisement
Add Comment
Please, Sign In to add comment