Ceiling_CrushAndRaiseA

From ZDoom Wiki
Jump to: navigation, search

196:Ceiling_CrushAndRaiseA (tag, dspeed, uspeed, crush [,crushmode])


  • tag: Tag of affected sector
  • dspeed: How quickly the ceiling moves down
  • uspeed: How quickly the ceiling moves back up
  • crush: Amount of damage to apply
  • crushmode: Sets the crushing mode

Usage

Lowers and raises the ceiling of the affected sectors continually, applying crushing damage to anything underneath it. If tag is 0, then the sector on the line's back side is used.

Examples

script 42 (void)
{
    //Crusher that quickly falls, instantly kills any
    //player not using invincibility and then slowly rises back up
    Ceiling_CrushAndRaiseA(29, 48, 2, 300);
}