Advertisement
Gayngel

Untitled

Jan 26th, 2015
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. //Plays a sounds at random at a random interval but less than the timer's float. Place sounds in inventory.
  2.  
  3. default
  4. {
  5. state_entry()
  6. {
  7. llSetTimerEvent(llFrand(30.0));
  8. }
  9.  
  10. timer()
  11. {
  12. llPlaySound(llGetInventoryName(INVENTORY_SOUND, (integer)llFrand(llGetInventoryNumber(INVENTORY_SOUND))),1.0);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement