Advertisement
john_danger

14, 46 :error : name not defined within scope?

Oct 1st, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. // Note: You will need to copy both this script and a sound into your object
  2.  
  3.  
  4.  
  5. default
  6. {
  7.  
  8. state_entry() {
  9. llSensorRepeat("", NULL_KEY, AGENT, 5, PI, 5);
  10. }
  11. sensor(integer total_number) {
  12.  
  13. llPlaySound((string)(++SoundClipNumber),1.0);
  14. if(ON == 1){llSetTimerEvent(SoundLength); ON = 2;}
  15. if(SoundClipNumber == MaxSoundClips){llSetTimerEvent(LastSoundLength); ON = 1; SoundClipNumber = 0;}
  16. llPreloadSound((string)(SoundClipNumber+1));
  17. }
  18.  
  19. listen(integer channel, string name, key id, string message)
  20. {
  21.  
  22. {
  23. llSetTimerEvent(0.01);
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement