home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_moisture_ctrlrm.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
2KB
|
104 lines
# Droids Cog Script
#
# D0_skyway.cog
#
# Skyways cog
#
# Desc:
# This is the "Wheel & Axle" puzzle for the Moisture Farm level.
#
#
# [MT] Created
# 1/16/98 [JP] Modified for Moisture Farm Control Room.
#
# (C) 1997 LucasLearningLimited. All Rights Reserved
symbols
message startup
message pulse
message entered
message exited
message touched
surface reset_switch linkid=10
thing wrench_fake
thing wrench no link
thing gear
thing platform
thing water_sector0
thing water_sector1
thing water_sector2
thing platform_water_sector
thing light0
thing light1
thing light2
thing light3
sector control_room
sector drain_room
sector platform_sector
flex
int
sound reset_switch_broke
sound gear_wrench_move
sound water_gush
sound power_on
end
# =======================================
## Code Section
code
startup:
print("startup");
// setpulse(0.1);
attachthingtothing(wrench_fake,wrench);
return;
# =========================================================
activated:
if (GetSenderId() == 10) // pressing reset button underwater
setwallcell(switch
touched:
print("touched");
setpulse(0.1);
return;
entered:
print("entered!");
movetoframe(wrench,1,.1);
return;
exited:
print("exited!");
stopthing(wrench);
return;
pulse:
// printflex(vectordist(playerpos,wrenchpos));
player=getlocalplayerthing();
playerpos=getthingpos(player);
wrench_fakepos=getthingpos(wrench_fake);
printflex(vectordist(playerpos, wrench_fakepos));
if(vectordist(playerpos,wrench_fakepos)<.14) {
movetoframe(wrench, 1, .5);
}
else stopthing(wrench);
return;