Guest User

Untitled

a guest
Jun 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. default
  2. {
  3. state_entry()
  4. {
  5. llSay(0, "Script running");
  6. }
  7. touch(integer i)
  8. {
  9. llSay(0, "touched");
  10. vector target = <90.550, 229.858, 24.988>; //Final position
  11. vector pos = llGetPos();
  12. while(pos.x > target.x) //We want it to move along the x-axis
  13. {
  14. llSetPos(pos + <-2,0,0>);
  15. pos = llGetPos();
  16. //llSleep(0.1);
  17. }
  18. }
  19. }
Add Comment
Please, Sign In to add comment