Advertisement
Dorex

Untitled

Oct 21st, 2023
1,293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. default
  2. {
  3.     state_entry()
  4.     {
  5.         llStopSound();
  6.         llSetTimerEvent(0.01);
  7.     }
  8.  
  9.     timer()
  10.     {
  11.         if (llGetAgentInfo(llGetOwner()) & AGENT_WALKING)
  12.         {
  13.             state walking;
  14.         }
  15.     }
  16. }
  17.  
  18. state walking
  19. {
  20.     state_entry()
  21.     {      
  22.         llSetTimerEvent(0.2);
  23.         llLoopSound("25dd35f8-cf05-df30-47cc-a51a22916f0a",1.0);//Walk
  24.     }
  25.  
  26.     timer()
  27.     {
  28.         if (!(llGetAgentInfo(llGetOwner()) & AGENT_WALKING))
  29.         {
  30.             state default;
  31.         }
  32.  
  33.         if(llGetAgentInfo(llGetOwner()) & AGENT_FLYING )
  34.         {
  35.             llLoopSound("cf6d864b-b642-60a3-0a3c-83d15bf099ea",1.0);//Flying    
  36.             state flight;
  37.         }
  38.     }
  39. }
  40.  
  41. state flight
  42. {
  43.     state_entry()
  44.     {
  45.         llSetTimerEvent(0.2);
  46.         llLoopSound("cf6d864b-b642-60a3-0a3c-83d15bf099ea",1.0);
  47.     }
  48.    
  49.     timer()
  50.     {
  51.         if (!(llGetAgentInfo(llGetOwner()) & AGENT_FLYING))
  52.         {
  53.             //state default;
  54.             state flight;
  55.             llLoopSound("7133a677-415c-c180-e83d-b26aa28a2d3d",1.0);
  56.         }
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement