Skip to content

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.

Satellite Functions

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

Satellite Events

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

Smart Helmet Functions

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

Nano Swarm Functions

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.

Labeling Functions

Function Returns Description
setLabel(string label) nil Sets a new label for the antenna
getLabel() string label Returns the current label of the antenna
Clone this wiki locally