home *** CD-ROM | disk | FTP | other *** search
- # Droids Cog Script
- #
- # To end the level by entering a sector
- #
- #
- #
- #
- # [MT]
- #
- #
- # (C) 1997 LucasLearningLimited. All Rights Reserved
-
-
-
- symbols
- message entered
- message startup
- message pulse
- message timer
- message activate
-
- surface switch
-
- sector endsector
-
- template ghosttemplate
-
- thing door1
- thing door2
-
- vector launchvector
- end
-
- ## Code Section
- code
- startup:
- player=getlocalplayerthing();
- setwallcel(switch, 1);
- return;
-
- entered:
- playerpos=getthingpos(player);
- alternatecam=createthingatpos(ghosttemplate, endsector, playerpos, '0.0 0.0 0.0');
- SetCameraFocii(2,player,alternatecam);
- SetCurrentCamera(2);
- setpulse(0.1);
- settimer(4);
- return;
-
- pulse:
- setthingvel(player,launchvector);
- return;
-
- timer:
- if (getsenderid()==1) {
- movetoframe(door1, 0, 3);
- movetoframe(door2, 0, 3);
- setwallcel(switch, 1);
- }
- else dwendlevel();
- return;
-
- activate:
- setwallcel(switch, 2);
- movetoframe(door1, 1, 3);
- movetoframe(door2, 1, 3);
- settimerEX(8, 1, 0, 0);
- return;
-
-
-
-
-
-
-
-
- end
-
-