GPS API
Functions
|
|||||||||||
When called, sends out a ping to any listening GPS hosts, which in turn will send their own coordinates. Using these coordinates and the signal distance, using trilateration the GPS API can acquire its own location. If for any reason the GPS locating failed, the returned x, y and z will be nil. A Wireless Modem must be attached and GPS Hosts must be in range for the GPS location to succeed.
The results that gps.locate returns are only as accurate as the data they receive from GPS hosts. If a host returns incorrect data (due to some misconfiguration), the returned location will also be inaccurate. |
|||||||||||
Syntax | gps.locate(
|
||||||||||
Returns | nil | number x, number y, number z | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | gps | ||||||||||
|
Constants
|
|||
The channel used by the GPS API to send out a broadcast ping, that GPS Host will answer to. | |||
Type | number | ||
Value | 65534
|
||
Part of | CC:Tweaked |
gollark: But I want to know whether I should use any hypothetical Minecraft ACE exploits or just sell them to Roblox.
gollark: Can I use it to *ask* to install potatOS?
gollark: Can I also use the exploit to install potatOS?
gollark: What if I find a remote arbitrary code exploit in Minecraft and use that to display the *correct*-looking text?
gollark: I see. I'll have to find alternatives. Ħmmmm.
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.