Ceiling_LowerToHighestFloor — lowers selected ceilings to the highest surrounding floor.
Ceiling_LowerToHighestFloor (tag, speed);
Ceiling_LowerToHighestFloor ( tag, // tag of affected sector(s) speed // how quickly to lower the ceiling );
This special's function is the same whether you activate it on a line or use it in a script.
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.
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);
ZDoom 1.16
Ceiling Specials | Ceiling_RaiseByValue | Ceiling_RaiseByValueTimes8 | Ceiling_RaiseInstant