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

  1. # Jedi Knight Cog Script
  2. #
  3. # 03_ecam2.cog
  4. #
  5. # Generic Door Script
  6. #
  7. # [JP]    Ecam2 to show 2nd tank control turn on.
  8. #
  9. # (C) 1998 LucasLearning Limited. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     message    user2        
  14.     message    arrived        
  15.     message    timer        
  16.  
  17.      thing          camera1
  18.                     
  19.     float        moveSpeed=0.5
  20.     float        sleepTime=2.0
  21.     float        lightValue=0.5
  22.  
  23.     int        numDoors=0    local
  24.     int        doorStatus    local
  25.     int        moveStatus    local
  26.     int        i             local
  27.      
  28. end
  29.  
  30. # ========================================================================================
  31.  
  32. code
  33.  
  34. user2:
  35.      //user1 received from tanks.cog when solution reached
  36.      Sleep(0.5);
  37.      setcamerafocus(0, camera1);
  38.      setcurrentcamera(0);
  39.      dwfreezeplayer();
  40.      print("camcam");
  41.      MoveToFrame(camera1, 2, 2);
  42.      settimer(4);
  43.      return;
  44.      
  45. //timer:
  46.      //movetoframe(camera2, 1, 3);
  47.      //return;
  48.      
  49. timer:          
  50.           dwunfreezeplayer();
  51.           setcurrentcamera(7);    //return camera to normal
  52.      
  53.      return;
  54.      
  55. end
  56.  
  57.