Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer on;
- default
- {
- state_entry()
- {
- llSay(0, "Hello, Avatar!");
- llSetKeyframedMotion([],[]);
- }
- touch_start(integer total_number)
- {
- llStartObjectAnimation("walk");
- llSay(0, "Touched.");
- if(on)
- {
- on=0;
- llSetKeyframedMotion([],[]);
- }
- else
- {
- llSetKeyframedMotion([
- <0,-23.1,0>,<0,0,0,1>,20,
- <5.90, -5.9, 0.00000>,llEuler2Rot(<0,0,90>*DEG_TO_RAD),10,
- <23.1,0,0>,<0,0,0,1>,20,
- <5.90, 5.9, 0.00000>,llEuler2Rot(<0,0,90>*DEG_TO_RAD),10,
- <0,23.1,0>,<0,0,0,1>,20,
- <-5.90, 5.9, 0.00000>,llEuler2Rot(<0,0,90>*DEG_TO_RAD),10,
- <-23.1,0,0>,<0,0,0,1>,20,
- <-5.90, -5.9, 0.00000>,llEuler2Rot(<0,0,90>*DEG_TO_RAD),10
- ],[KFM_MODE, KFM_LOOP]);
- on=1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement