-
Notifications
You must be signed in to change notification settings - Fork 28
Antenna
grandmind edited this page Apr 29, 2015
·
10 revisions
The Antenna is a peripheral which expands the wireless capabilities of computers. It currently has three uses: communicating with Satellites and communicating with Smart Helmets and communicating with Nano Swarms.
Function | Returns | Description |
---|---|---|
listSatellites() | table satellites | Gets all the currently orbiting satellites in the world, table uses the keys: id, x, y, z, upgrade, addons |
connectToSatelliteById(number id) | object satelliteHandle | Returns an object representing the given satellite, see the Satellites for info on how to use this |
Event | Parameter 1 | Parameter 2 | Parameter 3 | Parameter 4 | Parameter 5 | Parameter 6 | Description |
---|---|---|---|---|---|---|---|
satelliteCrash | "satelliteCrash" | number id | number x | number y | number z | number dimension | This event is fired when a satellite crashes |
satelliteLaunch | "satelliteLaunch" | number x | number y | number z | number dimension | This event is fired when a satellite is launched |
Function | Returns | Description |
---|---|---|
getPlayers() | table players | Lists all the players currently wearing a smart helmet linked to the antenna |
getHUD(string player) | object helmetHandle | Returns an object representing the given player's smart helmet HUD, see the Smart Helmets for info on how to use this |
Function | Returns | Description |
---|---|---|
getInfectedEntites() | table entities | Returns a list containing the entity IDs for all entities currently infected by a nanobot swarm. |
getInfectedEntity(number entityID) | object entity | Returns an object representing the infected entity. |
Function | Returns | Description |
---|---|---|
setLabel(string label) | nil | Sets a new label for the antenna |
getLabel() | string label | Returns the current label of the antenna |