ZDoom Line Specials

192:Ceiling_LowerToHighestFloor

Name

Ceiling_LowerToHighestFloor — lowers selected ceilings to the highest surrounding floor.

Synopsis

Ceiling_LowerToHighestFloor (tag, speed);
Ceiling_LowerToHighestFloor (
  tag,       // tag of affected sector(s)
  speed      // how quickly to lower the ceiling
);

Parameters

tag
Only sectors with this tag will move their ceilings.
speed
How fast to lower the ceiling.

ACS

This special's function is the same whether you activate it on a line or use it in a script.

Remarks

If more than one sector matches the specified tag, the sectors will move their ceilings independantly. Each sector will move its ceiling down to meet the highest floor in a neighboring sector. If the highest neighboring floor is above the sector's current ceiling height, then its ceiling will move to that height instantly instead of lowering at the specified speed.

Because each sector acts separately, if a ceiling is blocked in one sector, the other sectors will still be able to move their ceilings.

If tag is zero, then the sector on the back side of the activating line will be used.

Example

The following will lower the ceilings in all sectors tagged 1 at a rate of 2 units per tic. They will stop when they reach the highest floor in a neighboring sector.

Ceiling_LowerToNearestFloor (1, 16);

First Available In

ZDoom 1.16

See Also

Ceiling Specials | Ceiling_RaiseByValue | Ceiling_RaiseByValueTimes8 | Ceiling_RaiseInstant