home *** CD-ROM | disk | FTP | other *** search
- # 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
-