EVENT MOVESECTOR: Difference between revisions
Jump to navigation
Jump to search
Rob Anybody (talk | contribs) clarify what "move" means in this context |
Doom64hunter (talk | contribs) m Improve documentation and add category |
||
Line 1: | Line 1: | ||
EVENT_MOVESECTOR is a [[EDuke32_event_list|Game Event]]. | {{EventTable|1=EVENT_MOVESECTOR|2=closest player to sprite|3=origin sprite|4=1 value}} | ||
'''EVENT_MOVESECTOR''' is a [[EDuke32_event_list|Game Event]]. | |||
This [[event]] is triggered | This [[event]] is triggered whenever a sector is moved on the X and Y axes, like doors, but not motion along Z, like elevators. In other words, it is executed whenever the engine's <code>A_MoveSector()</code> function is executed. | ||
but not motion along Z, like elevators. | |||
[[THISACTOR]] is the | [[THISACTOR]] is set to the sprite that caused the sector to move around. Usually, this is a sector effector. | ||
The current player is set to the player closest to the sprite that caused the sector to move. | |||
The [[RETURN]] variable represents the angle by which the sector will rotate, and is initially set to the value of <code>[[htg_t|sprite[THISACTOR].htg_t 2]]</code>. The angle range is hereby limited to a range of 0-2047. | |||
You can alter this variable to change the amount by which a sector will rotate when in motion. | |||
[[Category:Events]] |
Latest revision as of 08:19, 5 February 2022
Event ID | player# | THISACTOR | RETURN | |
---|---|---|---|---|
EVENT_MOVESECTOR | closest player to sprite | origin sprite | 1 value |
EVENT_MOVESECTOR is a Game Event.
This event is triggered whenever a sector is moved on the X and Y axes, like doors, but not motion along Z, like elevators. In other words, it is executed whenever the engine's A_MoveSector()
function is executed.
THISACTOR is set to the sprite that caused the sector to move around. Usually, this is a sector effector.
The current player is set to the player closest to the sprite that caused the sector to move.
The RETURN variable represents the angle by which the sector will rotate, and is initially set to the value of sprite[THISACTOR].htg_t 2
. The angle range is hereby limited to a range of 0-2047.
You can alter this variable to change the amount by which a sector will rotate when in motion.