Sectnum: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Adding an important warning about setting sectnum manually.
No edit summary
Line 4: Line 4:




'''IMPORTANT:''' It is not suggested to manually change sectnum via "''setactor[(varname)].sectnum [varname/amount]''" because will not update various sprite and sectors lists kept in game and is believed to corrupt said lists, causing oddball occurances like sprites freezing in midair. To set sectnum properly, it is recommended to use [[changespritesect]] instead.
'''IMPORTANT:''' It is not suggested to manually change sectnum via "''setactor[(varname)].sectnum [varname/amount]''" because it will not update various sprite and sectors lists kept in game and is believed to corrupt said lists, causing oddball occurances like sprites freezing in midair. To set sectnum properly, it is recommended to use [[changespritesect]] instead.


[[Category:Sprite structure members]]
[[Category:Sprite structure members]]

Revision as of 18:04, 6 January 2010

sectnum

A sprite's sectnum is simply the sector the sprite is in. This can refer to either the general concept of the sprite's sector number or to the specific sectnum member of the sprite struct.


IMPORTANT: It is not suggested to manually change sectnum via "setactor[(varname)].sectnum [varname/amount]" because it will not update various sprite and sectors lists kept in game and is believed to corrupt said lists, causing oddball occurances like sprites freezing in midair. To set sectnum properly, it is recommended to use changespritesect instead.