[LIB] Get surrounding sectors

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Post Reply
User avatar
Posts: 12437
Joined: Fri, 13. Jan 06, 17:39

[LIB] Get surrounding sectors

Post by Gazz » Sun, 10. Aug 08, 11:40

Returns a list of sectors within X jumps of the supplied sector, null if none apply.

Arg 1: start sector
Arg 2: min jump range
Arg 3: max jump range
Arg 4: include start sector

Image (ZIP)
Last edited by Gazz on Mon, 11. Aug 08, 01:57, edited 1 time in total.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.

Posts: 71
Joined: Thu, 20. Mar 08, 00:50

Post by Nadrek » Mon, 11. Aug 08, 00:33

Not to sound ungrateful, but how practical is it to put in a minimum range argument as well, so an expanding search can be implemented (among other things) - i.e. search between 0 and 3 sectors from starting position, then from 4 to 6, then 7 to 9, etc.

Thank you, also, for another useful library!

Post Reply

Return to “X³: Reunion - Scripts and Modding”