Nextsectorneighborz

From EDukeWiki
Revision as of 10:19, 15 November 2021 by Mblackwell (talk | contribs) (Created page with "'''nextsectorneighborz''' <starting sector> <starting z> <ceiling or floor (-1 or 1)> <up or down (-1 or 1)> Finds the nearest sector to <starting sector> based on z position by searching for a <ceiling or floor> from the <starting z>, and scanning <up or down>. Note: The only valid values for the last two parameters are -1 or 1. RETURN will be the sectnum found. If RETURN is -1, then nothing was found by the search. Category:EDuke32 specific commands")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

nextsectorneighborz <starting sector> <starting z> <ceiling or floor (-1 or 1)> <up or down (-1 or 1)>

Finds the nearest sector to <starting sector> based on z position by searching for a <ceiling or floor> from the <starting z>, and scanning <up or down>. Note: The only valid values for the last two parameters are -1 or 1.

RETURN will be the sectnum found. If RETURN is -1, then nothing was found by the search.