Updatesector: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
One (talk | contribs)
No edit summary
Line 1: Line 1:
updatesector <x> <y> <gamevar>
'''updatesector''' <x> <y> <gamevar>


Returns [[sector number]] of [[sector]] at (<x>,<y>) into [[gamevar]] <gamevar>.  See [[updatesectorz]]. If it is not a valid sector (like outside the map or inside a column) it is set to -1. You may verify if the actual sector doens't equal to -1 before using [[getsector]] or you can get an warning in the log file.
Returns [[sector number]] of [[sector]] at (<x>,<y>) into [[gamevar]] <gamevar>.  See [[updatesectorz]]. If it is not a valid sector (like outside the map or inside a column) it is set to -1. You may verify if the actual sector doens't equal to -1 before using [[getsector]] or you can get an warning in the log file.

Revision as of 13:40, 4 May 2009

updatesector <x> <y> <gamevar>

Returns sector number of sector at (<x>,<y>) into gamevar <gamevar>. See updatesectorz. If it is not a valid sector (like outside the map or inside a column) it is set to -1. You may verify if the actual sector doens't equal to -1 before using getsector or you can get an warning in the log file.