home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / flashstrike / flashstrike.swf / scripts / DefineButton2_45 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2006-02-03  |  764 b   |  34 lines

  1. on(press){
  2.    if(_root.ammo > -1)
  3.    {
  4.       if(_root.hiding == "no")
  5.       {
  6.          if(_root.zoomed == 1)
  7.          {
  8.             _root.sight.gotoAndPlay("blood");
  9.             this.play();
  10.             _root.enemydead = "yes";
  11.          }
  12.       }
  13.       if(_root.reloading == "no")
  14.       {
  15.          if(_root.ammo > -1)
  16.          {
  17.             if(_root.targethit <= 1)
  18.             {
  19.                _root.sight.gotoAndPlay("blood");
  20.                _root.enemydead = "yes";
  21.                this.play();
  22.             }
  23.             else
  24.             {
  25.                ouch = new Sound(this);
  26.                ouch.attachSound("ouch");
  27.                ouch.start(0,1);
  28.                _root.targethit -= 1;
  29.             }
  30.          }
  31.       }
  32.    }
  33. }
  34.