home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_02_countdown.cog < prev    next >
Encoding:
Text File  |  1998-11-04  |  726 b   |  43 lines

  1. symbols
  2. message        user0
  3. message        timer
  4.  
  5. sound          threewav
  6. sound          twowav
  7. sound          onewav
  8.  
  9. cog            catapultcog
  10. end
  11.  
  12. code
  13. user0:
  14.      jgs=3;
  15.      settimer(1);
  16.      return;
  17.  
  18.  
  19. timer:
  20.      if (jgs==3) {
  21.           playsoundlocal(threewav, 1.0, 0.0, 4);
  22.           jgs=2;
  23.           settimer(1);
  24.           }
  25.      else if (jgs==2) {
  26.           playsoundlocal(twowav, 1.0, 0.0, 4);
  27.           jgs=1;
  28.           settimer(1);
  29.           }
  30.      else if (jgs==1) {
  31.           playsoundlocal(onewav, 1.0, 0.0, 4);
  32.           settimer(1);
  33.           jgs=0;
  34.           }
  35.      else if (jgs==0) {
  36.           sendmessage(catapultcog, user0);
  37.      }
  38.      return;   
  39.      
  40. end
  41.  
  42.  
  43.