home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2001 November / Gamestar_34_2001-11_cd1.bin / PATCHE / colobotpatch17e.exe / english / help / cbot / Receive.txt < prev    next >
Text File  |  2001-09-14  |  971b  |  19 lines

  1. \b;Instruction \c;receive\n;
  2. Syntax:
  3. \s;\c;receive ( name, power );\n;
  4.  
  5. Retrieves an information from the closest \l;information exchange post\u object\exchange;.
  6.  
  7. \t;name: \c;string\n;
  8. Name of the information required from the exchange post. This name is a string: it must be written in quotation marks "ª".
  9.  
  10. \t;power: \c;float\n;
  11. Power of the receiver, which corresponds to maximal distance between the receiver and the exchange post. If the distance is longer, no information is received. Default value is 10 metres.
  12.  
  13. \t;Return value: \c;\l;float\u cbot\float;\n;
  14. Value of the retrieved information. If no exchange post is close enough, or if the name of the requested information does not exist in the exchange post, the value \c;nan\n; is returned.
  15.  
  16. \t;See also
  17. \c;\l;send\u cbot\send;\n;, \c;\l;testinfo\u cbot\testinfo;\n; and \c;\l;deleteinfo\u cbot\delinfo;\n;.
  18. \l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.
  19.