Skip to content

Gate Library Documentation

Tiny Desk Engineer edited this page Sep 18, 2022 · 3 revisions

This is a page documenting all of the features included in gate.lua

Variables

symbols.origin: Table containing key/value pairs for the Point of Origin for each of the three gate types. Keys match string returned by the stargate component's getGateType() function. (MILKYWAY, PEGASUS, UNIVERSE)

Functions

dial(address: string, number or table): Dials the specified address. Accepts either individual arguments for each symbol in address, or table containing symbols.

isOpen(): boolean: Returns true if gate is open, returns false otherwise.

getMainAddress(): array: Returns main address for connected gate (For example, the MW address for a MW gate, UN address for UN, etc.)

getAddress(string: type): array: Returns address of specified type. Uses strings matching those returned by getGateType().

Clone this wiki locally