Gps (API)

From ComputerCraft Wiki
Revision as of 18:32, 14 March 2012 by StoneLeaf (Talk | contribs) (Page creation)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The gps API provides a method to locate a connected rednet entity.


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