Updatesector

From EDukeWiki
Revision as of 19:58, 7 January 2011 by Hendricks266 (talk | contribs)
Jump to navigation Jump to search

updatesector <x> <y> <gamevar> updatesectorz <x> <y> <z> <gamevar>

Returns sector number of sector at (<x>,<y>) or (<x>,<y>,<z>) into gamevar <gamevar>. If it is not a valid sector (like outside the map, inside a column, or below the floor) it is set to -1. You should verify that the value return is not equal to -1 before manipulating the sector or you could have problems.