Plat ToggleCeiling

From Eternity Wiki
Jump to navigationJump to search

Description

This is a parameterized linedef special.

Toggles between the floor touching the ceiling and its initial height.

Usage

Plat_ToggleCeiling(tag)

Parameters

  • tag: tag of sectors to trigger. If 0, it will trigger the sector behind the line.

Examples

No examples given.

Notes

Floor movement is instantaneous.

The floor will no longer respond to other actions except Plat_ToggleCeiling. From that point on, any such actions will toggle the floor position between its initial position and the position of the ceiling at the time of the first call. If the ceiling moves elsewhere in the meantime, the floor will still toggle to its initial assigned ceiling position, even if it happens to overlap the new ceiling.

If the floor is blocked by things from toggling to the ceiling, the action will have no effect.

The linedef special identification is 231 (UDMF) or 487 (ExtraData).

See also