Telescope - iimurpyh/pilot-lua GitHub Wiki
A part which can be used to get information about far away places.
Table of contents
Methods
CoordinateInfo Telescope:GetCoordinate()
Gets the [RegionInfo]] of the telescope's configured coordinates. Coordinates are provided in [Coordinate String format.
void Telescope:WhenRegionLoads(callback)
Calls the function when a region loads into the telescope.
function callback(regionData)
print(regionData)
end
local Telescope = GetPartFromPort(1, "Telescope")
Telescope:WhenRegionLoads(callback)
Telescope.Coordinates = "0, 0, 0, 0, false"
Telescope.Coordinates = "0, 0, 0, 1, false"
-- callback is called twice