Gps (API)

From ComputerCraft Wiki
Revision as of 18:34, 14 March 2012 by StoneLeaf (Talk | contribs) (Added examples of rednet entities)

Jump to: navigation, search

The gps API provides a method to locate a connected rednet entity (like a turtle or a computer).


Method name Description
gps.locate(timeout, debug) Tries to locate any connected rednet entity.

@param timeout the amount of time, in seconds, to wait for a rednet response
@param debug if true, outputs debug messages
@return the location of the connected rednet entity (x, y and z) or nil if it could not be determined