ZDoom Line Specials

252:Ceiling_RaiseToNearest

Name

Ceiling_RaiseToNearest — raises selected ceilings until they reach the next higher surrounding ceiling.

Synopsis

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

Parameters

tag
Only sectors with this tag will move their ceilings.
speed
How fast to raise 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 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.

Example

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);

First Available In

ZDoom 1.16

See Also

Ceiling Specials | Ceiling_RaiseByValue | Ceiling_RaiseByValueTimes8 | Ceiling_RaiseInstant