Colobot Wiki


testinfo ( name, power );

Tests if an information exists in the closest information exchange post.

name: string[]

Name of the information to be tested in the exchange post. This name is a string: it must be written in quotation marks ""

power: float[]

Power of the transmitter, which corresponds to the maximal distance between the transmitter and the exchange post. If the distance is longer, the function returns false. Default value is 10 meters.

Return: bool[]

Return true if the information exists. Return and false if the information does not exist or if the receiver is too far away from the exchange post.