home *** CD-ROM | disk | FTP | other *** search
- # Droids Cog Script
- #
- # 03_door.cog
- #
- # Generic Door Script
- #
- # [IS]
- # 01/30/98 [DGS] Added the switch
- # /2/15/98 [JP] Modified for use in the Moisture Farm
- # ========================================================================================
-
- symbols
- message startup
- message entered
- message timer
- message pulse
- message user1
- message user2
-
- surface ared1
- surface ared2
- surface ared3
-
-
- sector pulsesector
-
- material GMat
- int numcells
-
-
-
- end
-
- # ========================================================================================
-
- code
-
- startup:
- player=getlocalplayerthing();
- //setsurfacemat(ared1, offMat);
- //setsurfacelight(ared1, 0, 0.5);
- cellnumb=0;
- setwallcel(ared1, cellnumb);
- setwallcel(ared2, cellnumb);
- setwallcel(ared3, cellnumb);
-
- return;
-
- //user2:
- // //message from tanks activate1, so this thing starts blinkin'
- // //setsurfacemat(ared1, onMat);
- // setsurfacelight(ared1, 1, 0.5);
- // print("prestoo2");
- // setpulse(1);
- // print("pulsesent");
- // return;
-
- //pulse:
- // if (cellnumb==(numcells-1)) cellnumb=0;
- // else cellnumb=cellnumb+1;
- // setwallcel(agreen1, cellnumb);
- // setwallcel(agreen2, cellnumb);
- // print("pulsereceived");
- // return;
-
- user1:
- //setpulse(0);
- setsurfacemat(ared1, GMat);
- setsurfacemat(ared2, GMat);
- setsurfacemat(ared3, GMat);
- //setwallcel(ared1, 0);
- //setsurfacelight(ared1, 0, 0.5);
- return;
-
- end
-
-