home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2001 November / Gamestar_34_2001-11_cd1.bin / PATCHE / colobotpatch17e.exe / english / script / tremot2a.txt < prev    next >
Text File  |  2001-09-13  |  591b  |  26 lines

  1. extern void object::Remote( )
  2. {
  3.     SendToPost(1, 20);  // move(20);
  4.     SendToPost(2, 90);  // turn(90);
  5.     SendToPost(1, 20);  // move(20);
  6.     SendToPost(2, 90);  // turn(90);
  7.     SendToPost(1, 10);  // move(10);
  8.     SendToPost(2, 90);  // turn(90);
  9.     SendToPost(1, 10);  // move(10);
  10.     SendToPost(2,-90);  // turn(-90);
  11.     SendToPost(1, 10);  // move(10);
  12. }
  13.  
  14. void object::SendToPost(float order, float param)
  15. {
  16.     // send the order and the parameter
  17.     send("order", order, 100);
  18.     send("param", param, 100);
  19.  
  20.     // wait for end of work
  21.     while ( testinfo("order", 100) )
  22.     {
  23.         wait(1);
  24.     }
  25. }
  26.