<RetVar> = A variable where the requested information is stored.
<Var/Warpgate> = A warpgate or a variable containing one.
Returns the gate id of the as <Var/Warpgate> selected warp gate.
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.
$gate = get next gate on route from Argon Prime to Herron's Nebula
$id = $gate get gate id
write to player logbook $id
This writes the id of the next gate on the route from Argon Prime to Herron's Nebula to the logbook.
[url=http://forum.egosoft.com/viewtopic.php?t=305211]<RetVar/IF><RefObj> get warp gate: id=<Var/Number>
- »» Universe and Sector Commands
<RetVar> = <Var/Warpgate> get gate id