home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_05_countdown.cog < prev    next >
Encoding:
Text File  |  1998-11-04  |  767 b   |  44 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.      sendmessage(catapultcog, user0);
  17.      return;
  18.  
  19.  
  20. timer:
  21.      if (jgs==3) {
  22.           playsoundlocal(threewav, 1.0, 0.0, 4);
  23.           jgs=2;
  24.           settimer(1);
  25.           }
  26.      else if (jgs==2) {
  27.           playsoundlocal(twowav, 1.0, 0.0, 4);
  28.           jgs=1;
  29.           settimer(1);
  30.           }
  31.      else if (jgs==1) {
  32.           playsoundlocal(onewav, 1.0, 0.0, 4);
  33.           settimer(1);
  34.           jgs=0;
  35.           }
  36.      else if (jgs==0) {
  37.           sendmessage(catapultcog, user0);
  38.      }
  39.      return;   
  40.      
  41. end
  42.  
  43.  
  44.