EVENT MOVESECTOR
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.