Movesector: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
Source code says that sprite's T1, T2 and T3 are used. | Source code says that sprite's T1, T2 and T3 are used. | ||
T2 is originIdx, T3 for rotateAngle however nothing seems evident for T1. | T2 is originIdx, T3 for rotateAngle however nothing seems evident for T1. | ||
[[Category:EDuke32_specific_commands]] [[Category:All_commands]] | [[Category:EDuke32_specific_commands]] [[Category:All_commands]] [[Category:Sector manipulation]] |
Revision as of 08:28, 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. T2 is originIdx, T3 for rotateAngle however nothing seems evident for T1.