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

  1. #standard type magnetic tram cog.
  2. #don't forget to set blocking walls to "no move"
  3. symbols
  4. message        startup
  5. message        user0
  6. message        arrived
  7.  
  8. thing          AD1
  9. thing          AD2
  10. thing          AD3
  11. thing          AD4                
  12. thing          AD5
  13.  
  14. keyframe       walkdancekey
  15.  
  16. thing          Fortresscamera
  17.      
  18. sector         thrustsector
  19. vector         thrustvector
  20.  
  21. template       AdroidT
  22.  
  23. cog            playsoundcog
  24. end
  25.  
  26. ## Code Section
  27. code                  
  28. startup:
  29.      setsectorthrust(thrustsector, thrustvector, 0.3);
  30.      return;
  31.  
  32. user0:
  33.      print("fortresscamera activate");
  34.      setcamerafocii(2, AD1, fortresscamera);
  35. //     setcurrentcamera(2);
  36.      movetoframe(fortresscamera, 1, 1);  
  37.      playkey( AD0=(creatething(ADroidT, AD1)), walkdancekey, 1, 0);
  38. //     setthingMass(AD0, 150);
  39.      sleep(1.4);
  40.      dwplaycharacterspeech("tsr005", "fmad005.wav");
  41.      dwcleardialog();      
  42.      playkey( AD1=(creatething(ADroidT, AD2)), walkdancekey, 1, 0);
  43. //     setthingMass(AD1, 150);
  44.      sleep(1.5);
  45.      playkey( AD2=(creatething(ADroidT, AD3)), walkdancekey, 1, 0);
  46. //     setthingMass(AD2, 150);
  47.      dwplaycammyspeech(16008, "fmca008.wav", 20, 2);
  48.      sleep(1.9);
  49.      playkey( AD3=(creatething(ADroidT, AD4)), walkdancekey, 1, 0);
  50. //     setthingMass(AD3, 150);
  51.      sleep(2.2);
  52.      playkey( AD4=(creatething(ADroidT, AD5)), walkdancekey, 1, 0);
  53. //     setthingMass(AD4, 150);
  54.      return;
  55.         
  56.      
  57. arrived:
  58.      print("arrived");
  59. //     setcurrentcamera(7);
  60.      sendmessage(playsoundcog, user1);
  61.      return;
  62.  
  63. end
  64.  
  65.  
  66.