home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_05_minedoor.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
1KB
|
63 lines
# d_0 JawaTalk.cog
#
# A simple communiCog ripped off from Doug
#
# Desc:
# Sucker Fool I stole it from Matt, I didn't even change
# The variable GONK. - Love Ya, Doug
#
# Yeah, well I stole it back so bite me. --Matt
# 12/08/97 DGS Stole from Matt's GonkTalk
# 12/08/97 MST Stole back from Doug's JawaTalk
#-----------------------------------------------------------------------------
symbols
message startup
message arrived
message activate
message timer
surface switch0 linkid=1
surface switch1 linkid=1
thing door
end
code
startup:
doorsector=getthingsector(door);
setwallcel(switch0, 0);
setwallcel(switch1, 0);
return;
activate:
if (getsenderid()==1) {
setwallcel(switch0, 1);
setwallcel(switch1, 1);
movetoframe(door, 1, 3);
settimer(4);
}
return;
timer:
movetoframe(door, 0, 3);
return;
arrived:
if (getcurframe(door)==0) {
setwallcel(switch0, 0);
setwallcel(switch1, 0);
}
return;
end