SHARE
TWEET

Untitled

a guest Jan 4th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer on;
  2. default
  3. {
  4.     state_entry()
  5.     {
  6.         llSay(0, "Hello, Avatar!");
  7.         llSetKeyframedMotion([],[]);
  8.     }
  9.  
  10.     touch_start(integer total_number)
  11.     {
  12.      llStartObjectAnimation("walk");
  13.         llSay(0, "Touched.");
  14.         if(on)
  15.         {
  16.         on=0;
  17.         llSetKeyframedMotion([],[]);
  18.         }
  19.         else
  20.         {
  21.             llSetKeyframedMotion([
  22. <0,-23.1,0>,<0,0,0,1>,20,
  23. <5.90, -5.9, 0.00000>,llEuler2Rot(<0,0,90>*DEG_TO_RAD),10,
  24. <23.1,0,0>,<0,0,0,1>,20,
  25. <5.90, 5.9, 0.00000>,llEuler2Rot(<0,0,90>*DEG_TO_RAD),10,
  26. <0,23.1,0>,<0,0,0,1>,20,
  27. <-5.90, 5.9, 0.00000>,llEuler2Rot(<0,0,90>*DEG_TO_RAD),10,
  28. <-23.1,0,0>,<0,0,0,1>,20,
  29. <-5.90, -5.9, 0.00000>,llEuler2Rot(<0,0,90>*DEG_TO_RAD),10
  30. ],[KFM_MODE, KFM_LOOP]);
  31.             on=1;
  32.         }
  33.     }
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top