Difference between revisions of "Sectnum" - EDukeWiki

# Difference between revisions of "Sectnum"

From EDukeWiki

Revision as of 17:59, 18 January 2011 (view source) 189.32.90.235 (talk) ← Older edit | Revision as of 21:23, 18 January 2011 (view source) TX (talk | contribs) Newer edit →
Line 3: | Line 3:
| 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]]. |  | 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 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.
− | '''IMPORTANT:''' It is not suggested to manually change sectnum via "''setactor[].sectnum''" 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 21:23, 18 January 2011

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.

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Sectnum&oldid=9293"
Category:

- Sprite structure members