Oolite JavaScript Reference: Wormhole

From Elite Wiki
Revision as of 15:14, 4 October 2022 by Massively Locked (talk | contribs) (cleared up wording, modded link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Prototype: Entity
Subtypes: none

The Wormhole class is an Entity representing an opened gate to another System. A Wormhole has all the properties and methods of an Entity, and several others.

In v1.79 available for the entry Wormholes only.

Properties

arrivalTime

This property was added in Oolite test release 1.79.

arrivalTime : Number (read-only)

The game real time in seconds when the player will arrive at the destination system after entering the wormhole.

destination

This property was added in Oolite test release 1.79.

destination : Number (read-only)

The ID of the destination System.

expiryTime

This property was added in Oolite test release 1.79.

expiryTime : Number (read-only)

The game real time in seconds when the Wormhole will collapse.

origin

This property was added in Oolite test release 1.79.

origin : Number (read/write)

The ID of the System where the Wormhole originally opened.

In v1.79 always equal with the ID of the current System due to available for the entry Wormholes only.