Advertisement
Guest User

Untitled

a guest
Dec 26th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. list anim=["express_afraid","aim_r_bazooka","aim_l_bow","aim_r_handgun","aim_r_rifle","express_anger","away","backflip","express_laugh","blowkiss","express_bored","bow","brush","busy","clap","courtbow","crouch","crouchwalk","express_cry","turn_180","turnback_180","dance1","dance2","dance3","dance4","dance5","dance6","dance7","dance8","dead","drink","express_embarrased","express_afraid_emote","express_anger_emote","express_bored_emote","express_cry_emote","express_disdain","express_embarrassed_emote","express_frown","express_kiss","express_laugh_emote","express_open_mouth","express_repulsed_emote","express_sad_emote","express_shrug_emote","express_smile","express_surprise_emote","express_tongue_out","express_toothsmile","express_wink_emote","express_worry_emote","falldown","female_walk","angry_fingerwag","fist_pump","fly","flyslow","hello","hold_r_bazooka","hold_l_bow","hold_r_handgun","hold_r_rifle","hover","hover_down","hover_up","impatient","jump","jumpforjoy","kissmybutt","land","laugh_short","soft_land","motorcycle_sit","musclebeach","no_head","no_unhappy","nyanya","punch_onetwo","peace","point_me","point_you","prejump","punch_l","punch_r","express_repulsed","kick_roundhouse_r","rps_countdown","rps_paper","rps_rock","rps_scissors","run","express_sad","salute","shoot_l_bow","shout","express_shrug","sit","sit_female","sit_ground","sit_ground_constrained","sit_generic","sit_to_stand","sleep","smoke_idle","smoke_inhale","smoke_throw_down","snapshot","stand","standup","stand_1","stand_2","stand_3","stand_4","stretch","stride","surf","express_surprise","sword_strike_r","talk","angry_tantrum","throw_r","tryon_shirt","turnleft","turnright","type","walk","whisper","whistle","express_wink","wink_hollywood","express_worry","yes_head","yes_happy","yoga_float"];
  2. integer x;
  3. default
  4. {
  5.     state_entry()
  6.     {
  7.         llSay(0, "Hello, Avatar!");
  8.         x=18;
  9.     }
  10.  
  11.     touch_start(integer total_number)
  12.     {
  13.         list anims=llGetObjectAnimationNames();
  14.         if(llGetListLength(anims)>0)
  15.         {
  16.             llStopObjectAnimation(llList2String(llGetObjectAnimationNames(),0));
  17.         }
  18.         llStartObjectAnimation(llList2String(anim,x));
  19.         x=x+1;
  20.         if(x== llGetListLength(anim))
  21.         {
  22.             x=0;
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement