Movesector

From EDukeWiki
Revision as of 08:31, 5 July 2025 by Oasiz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

movesector <sprite ID>

A function commonly called by the game code for moving sectors in X and Y axes (but not Z) during events such as earthquakes, rotating sectors, swinging doors and escalators.

The sprite ID and it's xvel and yvel will determine the new x-y and the rotation angle can be accessed through EVENT_MOVESECTOR.

Source code says that sprite's T1, T2 and T3 are used. T2 is originIdx, T3 for rotateAngle however nothing seems evident for T1.