home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_b0_gear_activate.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
624b
|
37 lines
# DroidWorks
# gear_active.cog
#
# This cog sends a message to b0_gear.cog when the motor's been activated.
#
#
# [01/20/98] DGS Created
#
#
symbols
cog gear_cog
surface button
message startup
message activate
message user0
end
# ========================================================================================
code
startup:
SetWallCel(button, 1);
return;
activate:
// send message to gear cog telling it the switch has been hit.
sendmessage(gear_cog, user0);
SetWallCel(button, 0);
return;
user0:
SetWallCel(button, 1);
return;
end