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

  1. # d_0 JawaTalk.cog
  2. #    
  3. # A simple communiCog ripped off from Doug
  4. #
  5. # Desc:
  6. #      Sucker Fool I stole it from Matt, I didn't even change
  7. #    The variable GONK.     - Love Ya, Doug
  8. #    
  9. #    Yeah, well I stole it back so bite me.  --Matt
  10. # 12/08/97 DGS    Stole from Matt's GonkTalk
  11. # 12/08/97 MST Stole back from Doug's JawaTalk
  12. #-----------------------------------------------------------------------------
  13.  
  14. symbols
  15. message        startup
  16. message        activate
  17. message        arrived
  18.  
  19. surface        switch0
  20.  
  21. thing          door
  22.  
  23. end
  24.  
  25.  
  26. code
  27. startup:  
  28.      setwallcel(switch0, 1);
  29.      return;
  30.      
  31. activate:
  32.      curframe=getcurframe(door);
  33.      if (curframe==0) setwallcel(switch0, 2);
  34.      movetoframe(door, 1-curframe, 3);     
  35.      return;
  36.  
  37. arrived:
  38.      curframe=getcurframe(door);
  39.      if (curframe==0) setwallcel(switch0, 1);
  40.      return; 
  41.  
  42.  end
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.