[LIB] Get surrounding sectors

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

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

Post Reply
User avatar
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

[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

[ external 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.

Nadrek
Posts: 71
Joined: Wed, 19. Mar 08, 23: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”