home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2001 November / Gamestar_34_2001-11_cd1.bin / DEMA / colobotdemoe.exe / script / titan1.txt < prev    next >
Text File  |  2001-07-27  |  558b  |  17 lines

  1. extern void object::CollectTitanium1()
  2. {
  3.     // 1) Variable definition.
  4.     object  item;            // info. about objects
  5.     
  6.     // 2) Go to the titanium ore and grab it.
  7.     item = radar(TitaniumOre);// look for titanium ore
  8.     goto(item.position);     // go to the position
  9.     grab();                  // grab the titanium
  10.     
  11.     // 3) Go to the converter and drop it.
  12.     item = radar(Converter); // look for converter
  13.     goto(item.position);     // go to the position
  14.     drop();                  // drop the titanium
  15.     move(-2.5);              // step back 2.5 m
  16. }
  17.