Sectnum: Difference between revisions
Jump to navigation
Jump to search
Hendricks266 (talk | contribs) No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
'''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 [[Members of the sprite and hittype structures|sprite struct]]. | |||
It was once not suggested to manually change sectnum via "''setactor[].sectnum''" because it would not update the game's internal linked lists, causing oddball occurrences like sprites freezing in midair and general game state corruption. "''setactor[].sectnum''" is an alias of [[changespritesect]] in newer versions of EDuke32, preventing this corruption from occurring. | |||
[[Category:Sprite structure members]] |
Latest revision as of 13:50, 31 January 2016
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 the game's internal linked lists, causing oddball occurrences like sprites freezing in midair and general game state corruption. "setactor[].sectnum" is an alias of changespritesect in newer versions of EDuke32, preventing this corruption from occurring.