Floor_LowerToHighest

From ZDoom Wiki
Jump to: navigation, search

242:Floor_LowerToHighest (tag, speed, adjust)


  • tag: Tag of affected sector
  • speed: How quickly the floor moves
  • adjust: Amount of difference from target height + 128
  • force_adjust: Forces to apply the adjusted height. (development version r3304+ only)

Lowers a tagged sector's floor to the height of the highest surrounding floor + adjust - 128. So if you want the floor to lower to the height of the highest surrounding floor, use an adjust of 128. If you want it to lower to 8 units below the other floor, use an adjust of 120. Similar for other values of adjust. If tag is 0, then the sector on the line's back side is used.

The adjustment is normally done only if the lowest found floor height is different from the tagged sector's current floor height. However, if force_adjust is set to 1, it is done nonetheless.

Examples

This replicates accurately Doom's linetypes 36, 70, 71, 98:

Floor_LowerToHighest (tag, 32, 136)

This replicates accurately Doom's linetypes 19, 45, 83, 102:

Floor_LowerToHighest (tag, 8, 128)

This replicates accurately Heretic's linetypes 36:

Floor_LowerToHighest (tag, 32, 136, 1)
Personal tools
Namespaces

Variants
Actions
Navigation
ACS
DECORATE
ZDoom mods
Toolbox