Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*With this I have a llMessageLinked from a dialog script in the root prim.  The below script is in a child prim.  I'm trying to trigger the sounds to change from one to the other using the timer, but kinda failing at it.  Could someone please show me what I'm doing wrong, please.  Ty
  2. Elika Desibo (Alimah Destiny)*/
  3.  
  4.  
  5. float vol = 0.25;
  6.  
  7. string dflt = "355ced0e-ee14-9fa8-f73c-c724ddd3ef80";
  8.  
  9. default
  10. {
  11.     timer()
  12.     {
  13.         llPlaySound(dflt,vol);
  14.         llSetTimerEvent(llFrand(6)+1);  
  15.     }
  16.  
  17.     link_message(integer sender_num,integer num,string str,key id)
  18.     {
  19.         if (str == "on")
  20.             llSetTimerEvent(0.01);
  21.         else if (str == "off")
  22.             llSetTimerEvent(0);
  23.         else if (str == "Test1")
  24.         {
  25.               dflt = "9ea15eb0-d282-6c76-a1b5-4853ace16864";
  26.         }
  27.         else if (str == "Test2")
  28.         {
  29.               dflt = "04e2ec20-ec08-ecf7-38d2-0054132a3a51";
  30.         }  
  31.         else
  32.             vol = (float)str;
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement