Scroll_Ceiling
line version:
224:Scroll_Ceiling (tag, scrollbits, unused, x-move, y-move)
script version:
224:Scroll_Ceiling (tag, x-move, y-move, unused)
- tag: tag of affected sector
- scrollbits: how the scrolling speed is determined (see below)
- unused: does nothing, contrary to Scroll_Floor.
- x-move/y-move: how quickly and in what directions to scroll.
scrollbits: Selects the type of scroller and how the speed and angle is determined.
- bit 0(1): Displacement scroller
- bit 1(2): Accelerative scroller
- bit 2(4): Use this linedef to get dx and dy
This special takes 5 arguments when placed on a line, but 4 arguments when used in a script.
x-move and y-move are only used if scrollbits does not indicate to use the linedef to determine the scroll rate. When placed on a line, 128 is subtracted from these values to determine the actual direction and rate of scroll. (So 128 would be no scroll.) When used in a script, positive values move north/east, while negative values move south/west.
NOTE: When using Doom Builder 2 the scripting popup help will show the line version instead of the script version. Do not follow it, use the script version.
Examples
The following results in a ceiling (with the tag of 14) that quickly scrolls to the north.
script 1 OPEN { scroll_ceiling (14, 0, 150, 0); }
Conversions from linedef types
The following Doom map format types can be converted as Scroll_Ceiling:
Type | Conversion | Trigger |
---|---|---|
![]() | Scroll_Ceiling (tag, 6, 0, 0, 0) | |
![]() | Scroll_Ceiling (tag, 5, 0, 0, 0) | |
![]() | Scroll_Ceiling (tag, 4, 0, 0, 0) |