home *** CD-ROM | disk | FTP | other *** search
- symbols
- message startup
- message arrived
- message activate
-
- thing baffle
-
- int count=0 local
-
- cog baffleMcog
-
- sound bafflewav=swt02baffle.wav
-
- end
-
- code
- startup:
- count=0;
- return;
-
- arrived:
- count=count+1;
- if (count%12==0) jumptoframe(baffle, 0, getthingsector(baffle));
- if ((count-9)%12==0) sendmessage(baffleMcog, user0); //generator one online
- else sendmessage(baffleMcog, user1); //generator one OFFLINE
- return;
-
- activate:
- if (dwGetArmStrength() < 7) {
- dwplaycammyspeech(16022, "t3ca008.wav", 20, 2);
- return;
- }
-
- if (ismoving(baffle)!=0) {
- print("can't move it");
- return;
- }
- else {
- rotatepivot(baffle, 1, 1);
- playsoundthing(bafflewav, baffle, 1.0, -1, -1, 0);
- }
- return;
-
- end
-
-
-
-