Timed Sound (1 Minute)

From ZenMondo Wormser, 2 Months ago, written in Linden Scripting, viewed 57 times.
URL http://flynnos.org/flynnbin/view/5bc92795 Embed
Download Paste or View Raw
  1. // Will play the first sound in an object's inventory every 60 seconds
  2. // No controls whatsoever so spammy as hell, the only way to get it to be quiet
  3. // is to pick up the object or set the script to not running.
  4. // Basically just an example for playing a sound and using the timer event
  5.  
  6. {
  7.     state_entry()
  8.     {
  9.         llPlaySound(llGetInventoryName(INVENTORY_SOUND, 0), 1.0);
  10.         llSetTimerEvent(60);
  11.     }
  12.  
  13.     timer()
  14.     {
  15.        llPlaySound(llGetInventoryName(INVENTORY_SOUND, 0), 1.0);
  16.     }
  17. }
  18.  

Reply to "Timed Sound (1 Minute)"

Here you can reply to the paste above

captcha