home *** CD-ROM | disk | FTP | other *** search
- #
- # CC_Remote.cog
- #
- # Remote camera Cog
- #
- #
- # (C) 1998 Lucas Learning Limited All Rights Reserved
- # ========================================================================================
-
- symbols
- message activate
- message timer
-
- thing camera1_g
- surface button_s
- sound act_snd=SWT00DrSwtch.WAV local
-
- end
-
- # ========================================================================================
-
- code
- activate:
- print("camera on!");
- setwallcel(button_s,1);
- garbage = playsoundpos(act_snd,getsurfacecenter(button_s),0.5,-1,-1,0);
- sleep(1);
- dwFreezePlayer();
- SetCameraFocus(0, camera1_g);
- SetCurrentCamera(0);
- settimer(5);
- return;
-
- timer:
- print("camera off!");
- setwallcel(button_s,0);
- SetCurrentCamera(7);
- dwUnfreezePlayer();
- return;
-
-
- end
-
-