home *** CD-ROM | disk | FTP | other *** search
- # Jedi Knight Cog Script
- #
- # 03_ecam2.cog
- #
- # Generic Door Script
- #
- # [JP] Ecam2 to show 2nd tank control turn on.
- #
- # (C) 1998 LucasLearning Limited. All Rights Reserved
- # ========================================================================================
-
- symbols
- message user2
- message arrived
- message timer
-
- thing camera1
-
- float moveSpeed=0.5
- float sleepTime=2.0
- float lightValue=0.5
-
- int numDoors=0 local
- int doorStatus local
- int moveStatus local
- int i local
-
- end
-
- # ========================================================================================
-
- code
-
- user2:
- //user1 received from tanks.cog when solution reached
- Sleep(0.5);
- setcamerafocus(0, camera1);
- setcurrentcamera(0);
- dwfreezeplayer();
- print("camcam");
- MoveToFrame(camera1, 2, 2);
- settimer(4);
- return;
-
- //timer:
- //movetoframe(camera2, 1, 3);
- //return;
-
- timer:
- dwunfreezeplayer();
- setcurrentcamera(7); //return camera to normal
-
- return;
-
- end
-
-