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

  1. # Jedi Knight Cog Script
  2. #
  3. # 00_Door.cog
  4. #
  5. # Generic Door Script
  6. #
  7. # [IS]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13. message        startup
  14. message        activate
  15. message        arrived
  16.  
  17. surface        switch         linkid=3
  18.  
  19. thing          elevator       linkid=2
  20. thing          door           linkid=1
  21. thing          door2          nolink
  22. end
  23.  
  24. # ========================================================================================
  25.  
  26. code
  27. startup:
  28.      setwallcel(switch, 1);
  29.      return;
  30.      
  31. arrived:
  32.      if (getsenderid()==1) movetoframe(elevator, 1, 15);
  33.      else if (getsenderid()==2) {
  34.           sleep(0.5);
  35.           movetoframe(door2, 1, 3);
  36.      }
  37.      return;
  38.      
  39. activate:
  40.      if (getsenderid()==3) {
  41.           setwallcel(switch, 2);
  42.           movetoframe(door, 1, 3);
  43.      }
  44.      return;
  45.  
  46.      
  47.  
  48.  
  49.    
  50.  
  51. end
  52.  
  53.