home *** CD-ROM | disk | FTP | other *** search
- # Jedi Knight Cog Script
- #
- # 00_Door.cog
- #
- # Generic Door Script
- #
- # [IS]
- #
- # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
- # ========================================================================================
-
- symbols
- message startup
- message activate
- message arrived
-
- surface switch linkid=3
-
- thing elevator linkid=2
- thing door linkid=1
- thing door2 nolink
- end
-
- # ========================================================================================
-
- code
- startup:
- setwallcel(switch, 1);
- return;
-
- arrived:
- if (getsenderid()==1) movetoframe(elevator, 1, 15);
- else if (getsenderid()==2) {
- sleep(0.5);
- movetoframe(door2, 1, 3);
- }
- return;
-
- activate:
- if (getsenderid()==3) {
- setwallcel(switch, 2);
- movetoframe(door, 1, 3);
- }
- return;
-
-
-
-
-
-
- end
-
-