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

  1. #standard type crate generation cog.
  2. symbols
  3. message        startup
  4. message        arrived
  5. message        entered
  6. message        timer
  7.  
  8. thing          crateG
  9.  
  10.  
  11. template       crateT
  12. sector         startsector    linkid=2
  13.  
  14.  
  15. end
  16.  
  17. ## Code Section
  18. code                  
  19. startup:
  20.      player=getlocalplayerthing();
  21.      return;
  22.  
  23. createcrate:
  24.      newcrate=CreateThing(crateT, crateG);
  25.      CaptureThing(newcrate);
  26.      movetoframe(newcrate, 3, 5);
  27.      return;
  28.      
  29.      
  30.     
  31.      
  32. entered:
  33.      if (getsenderid()==2) {
  34.           call createcrate; 
  35.           print("you've left the factory");
  36.      }
  37.      return;
  38.  
  39.      
  40.  
  41. end
  42.      
  43.      
  44.      
  45.     
  46.  
  47.      
  48.      
  49.      
  50.      
  51.  
  52.