EVENT MOVEEFFECTORS

From EDukeWiki
Revision as of 08:05, 5 February 2022 by Doom64hunter (talk | contribs) (Completely incorrect article, this event triggers for every sector effector, not just the ones that move sectors around.)
Jump to navigation Jump to search
Event ID player# THISACTOR RETURN
EVENT_MOVEEFFECTORS closest player to sprite current effector 0 values

EVENT_MOVEEFFECTORS is a Game Event.

This event is triggered once per tic for each sector effector present in a map (i.e. sprites with STAT_EFFECTOR).

THISACTOR is set to the current effector spriteNum, while the current player is chosen as the one closest to the current effector.

Contrary to what the name implies, this event is not only invoked for each sector-movement-based effector, but all of them.

Set RETURN to a non-zero value to cancel the hardcoded behavior of the sector effector.

See also: Sector Effector Reference Guide