Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Note: You will need to copy both this script and a sound into your object
- default
- {
- state_entry() {
- llSensorRepeat("", NULL_KEY, AGENT, 5, PI, 5);
- }
- sensor(integer total_number) {
- llPlaySound((string)(++SoundClipNumber),1.0);
- if(ON == 1){llSetTimerEvent(SoundLength); ON = 2;}
- if(SoundClipNumber == MaxSoundClips){llSetTimerEvent(LastSoundLength); ON = 1; SoundClipNumber = 0;}
- llPreloadSound((string)(SoundClipNumber+1));
- }
- listen(integer channel, string name, key id, string message)
- {
- {
- llSetTimerEvent(0.01);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement