innula

Untitled

Jan 24th, 2013
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. vector gPosSlide = < 0.0, 1.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. }
Add Comment
Please, Sign In to add comment