innula

Untitled

Aug 15th, 2012
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. vector gPosSlide = < 0.5, 0.0,0.0 >; //-- the offset amount to move
  2.  
  3. default{
  4.     touch_start( integer vIntNull ){
  5.     llSetPos( llGetLocalPos() + gPosSlide * llGetLocalRot() );
  6.     gPosSlide = -gPosSlide;
  7.     //-- or replace the previous 2 lines with...
  8.     // llSetPos( llGetLocalPos() + (gPosSlide = -gPosSlide) * llGetLocalRot() );
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment