Ceiling_RaiseToNearest — raises selected ceilings until they reach the next higher surrounding ceiling.
Ceiling_RaiseToNearest (tag, speed);
Ceiling_RaiseToNearest ( tag, // tag of affected sector(s) speed // how quickly to raise 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 up to meet the nearest ceiling in a neighboring sector. If all the neighboring sectors have ceiling heights lower than the sector's current ceiling height, then the sector will not move its ceiling.
If tag is zero, then the sector on the back side of the activating line will be used.
The following will raise the ceilings in all sectors tagged 1 at a rate of 2 units per tic. They will stop when they reach the next higher ceiling in a neighboring sector.
Ceiling_RaiseToNearest (1, 16);
ZDoom 1.16
Ceiling Specials | Ceiling_RaiseByValue | Ceiling_RaiseByValueTimes8 | Ceiling_RaiseInstant