<RetVar> = A variable where the requested information is stored.
<RefObj> = A variable containing a sector.
Returns the north gate of the as <RefObj> selected sector.
Each sector in the X-Universe can have a maximum of 6 gates. Each gate in a sector has a specific id, whereby the ids 0-3 are usually reserved for north (0), south (1), west (2) and east (3) gate. The ids 4 and 5 are free to use for additional gates, for example in the HUB or the Aldrin sector (after the Aldrin Expansion plot). Note, that it's also possible to create gates with different ids - possible ids are still 0-5, but for example you could use '1' as north gate - using the create gate[/color]-command.
However, this command will always return the gate with the id = 0. If a sector has no gate with this id, the command will return 'null'.
Example:
$sector = [PLAYERSHIP] -> get sector
$gate = $sector -> get north warp gate
$destination = $gate get gate destination: return sector=[TRUE]
write to player logbook $destination
return null
Assuming the current player sector contains a north gate ( with id=0 ), this writes its destination to the logbook.
Related Commands:
[url=http://forum.egosoft.com/viewtopic.php?t=305208]<RetVar> = <RefObj> get south warp gate
<RetVar> = <RefObj> get east warp gate
<RetVar> = <RefObj> get west warp gate
Command Location:
- »» Universe and Sector Commands
<RetVar> = <RefObj> get north warp gate