Skip to content

getDistance

MicroBlaster edited this page Sep 21, 2019 · 1 revision

Purpose: Internally calculates the distance between two sectors through the use of the TWX Proxy Database.

Syntax: getDistance var {fromSector} {toSector}

var: A variable that will contain the distance between the two sectors.

{fromSector}: The sector to plot a course from.

{toSector}: The sector to plot a course to.

Notes: This command behaves exactly the same as the 'getCourse' command - it internally plots a warp course between two sectors. The difference is that this command will record only the distance between both sectors without saving the results of the course itself - this gives a marginal speed improvement.

If there is not enough warp data to plot between the two sectors, 'var' will be set to -1.

Example:

Clone this wiki locally