ChangeCeiling

From ZDoom Wiki
Jump to: navigation, search

void ChangeCeiling(int tag, str flatname);

Usage

Changes the ceiling texture of all sectors with the specified tag to have flatname as their new ceiling texture. You may also use any texture, pname, sprite or internal graphic (such as TITLEPIC) in place of an actual flat. Note: Only graphics whose dimensions are powers of 2 (i.e.: 32, 64, etc.) will display correctly.

Examples

A simple script to change the texture of any ceilings with the sector tag 4.

Script 1 (void)
{
    ChangeCeiling(4, "RROCK13");
}