Line_AlignFloor

From ZDoom Wiki
Jump to navigation Jump to search

184:Line_AlignFloor (lineid, side)


  • lineid: Line to use for alignment
  • side: Align sector in front of or behind the line?

Causes the tops of the floor textures in the front (0) or back (1) of the specified line to align with the line. Any future scrolling or rotation of the floor will use this new alignment as a basis, unless changed again with one of these specials. The reason for this is so that once rotating sectors are a reality, you only need to align the texture once, and it will stay aligned as you rotate the sector.

Note that this is not a static init linedef type, but one that has to be explicitly activated, either by a switch, a walkover trigger, a script, etc. Just putting it on the line will not do anything. You must first assign a line identification number to the linedef to which you want the flat aligned, then use the activator. If you want the flat aligned right from the start of the map, use the special in an OPEN script.