Sectnum

From EDukeWiki
Revision as of 21:23, 18 January 2011 by TX (talk | contribs)
Jump to navigation Jump to search

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.

It was once not suggested to manually change sectnum via "setactor[].sectnum" because it would not update various sprite and sectors lists kept in game and was believed to corrupt said lists, causing oddball occurances like sprites freezing in midair. "setactor[].sectnum" is an alias of changespritesect in newer versions of EDuke32, preventing this corruption from occurring.