home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / PMGRacing.swf / scripts / frame_33 / DoAction.as
Encoding:
Text File  |  2001-07-07  |  550 b   |  29 lines

  1. if(eval("/:car") eq "hovercraft")
  2. {
  3.    tellTarget("/damage")
  4.    {
  5.       gotoAndStop(int(getProperty("/damage", _currentframe) + "20"));
  6.    }
  7.    if("6" < int(eval("/:vel_x") - "20"))
  8.    {
  9.       set("/:vel_x",int(eval("/:vel_x") - "20"));
  10.       tellTarget("_level0")
  11.       {
  12.          call("tan_table");
  13.       }
  14.    }
  15.    else
  16.    {
  17.       set("/:vel_x","6");
  18.       tellTarget("_level0")
  19.       {
  20.          call("tan_table");
  21.       }
  22.    }
  23.    tellTarget("_level0/car")
  24.    {
  25.       gotoAndStop("hit_big");
  26.    }
  27.    set("/:acc","1");
  28. }
  29.