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

  1. tellTarget("/damage")
  2. {
  3.    gotoAndStop(int(getProperty("/damage", _currentframe) + "8" * eval("/:var_damage")));
  4. }
  5. if("6" < int(eval("/:vel_x") - "6" * eval("/:slow_var")))
  6. {
  7.    set("/:vel_x",int(eval("/:vel_x") - "6" * eval("/:slow_var")));
  8.    tellTarget("_level0")
  9.    {
  10.       call("tan_table");
  11.    }
  12. }
  13. else
  14. {
  15.    set("/:vel_x","6");
  16.    tellTarget("_level0")
  17.    {
  18.       call("tan_table");
  19.    }
  20. }
  21. if(eval("/:car") ne "hovercraft")
  22. {
  23.    tellTarget("_level0/car")
  24.    {
  25.       gotoAndStop("hit_small");
  26.       play();
  27.    }
  28. }
  29. else
  30. {
  31.    tellTarget("_level0/car")
  32.    {
  33.       gotoAndStop("hit_hc_small");
  34.       play();
  35.    }
  36. }
  37. set("/:acc","1");
  38.