API GetFullPath

From Vendetta Lua
Jump to: navigation, search

GetFullPath

Definition: GetFullPath(int sector, table navroute) -> table fullpath
Description:
Get the full path, including wormhole sectors, from sector along navroute
Arguments:
sector sectorid of starting sectors
navroute list of sectorids
Returns:
fullpath navroute plus sectorids of wormhole sectors
Example:

-- get full path from Sol a1 to betheshee a1 via sol b1
-- the function adds some duplicate entries
GetFullPath(1, {2, 257}) -> {1, 2, 2, 226, 351, 257}