home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 51 / PCGamer51_17Demos.iso / games / colobotdemo / colobotdemo10e.exe / script / tant3.txt < prev    next >
Text File  |  2001-06-21  |  302b  |  23 lines

  1. extern void object::Solution()
  2. {
  3.     object    item;
  4.     
  5.     jet(0.2);
  6.     while(position.z < 20)
  7.     {
  8.         wait(0.2);
  9.     }
  10.     jet(0);
  11.     
  12.     while(true)
  13.     {
  14.         item = radar(AlienAnt);
  15.         turn(direction(item.position));
  16.         while (radar(AlienAnt, 0, 360, 0, 40) == null)
  17.         {
  18.             wait(0.2);
  19.         }
  20.         fire(1);
  21.     }
  22. }
  23.