Jump to content

Movesector: Difference between revisions

From EDukeWiki
Created page with "'''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, where T2 is originIdx, T3 for rotateAngle but nothing for T1."
(No difference)

Revision as of 08:23, 5 July 2025

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, where T2 is originIdx, T3 for rotateAngle but nothing for T1.